Questions on the color models, schemes, named colors and color functions supported by Mathematica.

learn more… | top users | synonyms (2)

2
votes
0answers
35 views

Background color does not display in InputField unless Appearance option is also specified

I get the same behavior for v.10.0.2 and v.9 with OS X (10.9.5) : No background color is displayed in InputField if I just set properly the option. For example, ...
2
votes
0answers
87 views

How can I transfer colors from first image into second image? [duplicate]

How can I transfer colors from first image into second image, where every object from the first image should take the same object's color from first image. This images are only an example. this is ...
3
votes
3answers
68 views

ReplaceImageValue and ReplacePixelValue extremely slow

I have a grey scale image: and I am doing the following: bin = Binarize[image, 0.18] ...
3
votes
2answers
63 views

BarLegend using Function that uses Blend

I'm sorry if this is a duplicate, but I don't even know how to look for it. I had this line of code that worked on a Notebook I wrote on Mathematica 9.0: ...
3
votes
1answer
127 views

How can I pick a color from a ColorMap and colorize selected image pixels with this color

I have a binarized image and would like to set pixel values which are 1 to a certain (any) color picked from ColorData["TemperatureMap"] and 0 to another color of TemperatureMap. How can I do that? ...
10
votes
2answers
253 views

Modify existing color scheme

I am using the "TemperatureMap" color scheme for image processing. How can I set the lowest color value to Black? Generally ...
1
vote
2answers
101 views

Colorizing thresholded images with different colors

I am switching from IDL (from exelis) to Mathematica and want to do the following: thersholding a image (all values above a certain threshold are set 1, the rest is 0 ) colorizing the thresholded ...
2
votes
2answers
100 views

ListPlot a bunch of points that changes colour

I have a list of points: r = Range[-Pi/2, Pi/2, Pi/8]; angles = (c = Tuples[r, 2]) and a list of numbers which will determine the colour of the points above: ...
4
votes
2answers
103 views

Match colors to plot themes

How do I get the colors to match the plot theme when I use a PlotLegend that is separate to the plots? I have had a look at How to access new colour schemes in version 10? but can't seem to find what ...
2
votes
1answer
46 views

Inconsistent behavior in ColorFunctionScaling of BarLegend in v10.0.1

I find the ColorFunction in BarLegend behaves very weirdly: Force rescaling from 0 to 1 For example: ...
3
votes
1answer
53 views

RegionPlot with ColorFunction gives ugly frame labels

I was working on a simple 2D region plot: ...
1
vote
1answer
82 views

Plot multiple solutions [duplicate]

I want to plot multiple solutions of an equation, so that one can differ them in the plot. The given equation is e.g. ...
0
votes
1answer
65 views

ColorFunction that depends on angle of line

I have a ListLinePlot, and I want the ColorFunction to vary as the angle, so that the color of the whole line depends on its angle from the x-axis. Here is a MWE of what I am doing: ...
2
votes
2answers
50 views

Default color for Filling in Mathematica 9

The default color scheme for plots in my Mathematica version is ColorData[1]. What about for the Filling option?
0
votes
0answers
20 views

Different color for plots inside manipulate object [duplicate]

I want to plot two functions in the same plot (meand and approxmean) with a different color. When I place the plot commands outside of the manipulate and grid region they are colored differently but ...
0
votes
1answer
60 views

Preventing Colors of Graphics from Blending

I am displaying multiple Disks that overlap and many of the Disks are different colors. Currently, the regions in which the Disks overlap are a color that is a mixture of the two Disks. I would like ...
3
votes
3answers
136 views

How to shade a plotted region in specific direction?

I am using RegionPlot to plot a linear program maximize 30x1+25x2 with the constraints ...
3
votes
0answers
46 views

How to replicate v9's color conversion to LAB under v10

Mathematica 10(.0.0) appears to use a different flavor of the LAB color space, but I would like to emulate the same behavior observed in version 9(.0.0). v9 ...
24
votes
3answers
619 views

Is there an easy way to use Matteo Niccoli's perceptual color maps for 2D plots in Mathematica?

I have been using the ubiquitous Jet color palette for 2D plots for some time now, and don't really care for it. Then I came across the series of blog posts, The rainbow is dead...long live the ...
1
vote
0answers
62 views

ColorFunction - custom colors and scaling

I am trying to implement my own colors and scaling into the ColorFunction which I use in ListDensityPlot. I have several lists of 2D values which I plot in multiple images and I want to scale the data ...
1
vote
1answer
92 views

Filling between ParametricPlot and Plot

There are some similar questions: (1) (2) have been ask, but I think this is a different one. If we have a ParametricPlot and a ...
0
votes
2answers
60 views

Change the colour scheme in DensityPlots to make the zero white

We are trying to plot a density plot using the TemperetarueMap colour scheme. However, we don't seem to be able to make the white colour correspond to the value zero of the function we are plotting. ...
4
votes
2answers
387 views

Colorize Grayscale Image

I have a grayscale image that contains two objects. The grayscale pixel values can be divided into three intervals where two of them represent objects and the third represents the background. The ...
3
votes
1answer
79 views

Draw function with different colors associated to a parameter

I want to generate a plot similar to this one, which allows for different colors when given different parameters : (This is the Moreau-Yosida regularization of the absolute value) the Moreau-Yosida ...
3
votes
1answer
91 views

Recognizing Matching Colors in a Game Grid from a Camera Image

I am relatively new to Mathematica, having taken my first serious dive into it this week. As a fun project to teach myself some of the basics, I've come up with a goal of optimally solving a game ...
4
votes
1answer
73 views

Can't Get BarChart to use ColorFunction

I'm trying to get a BarChart to colour negative valued bars red and positive valued bars green but I'm having a time trying to do it. My latest attempt is: ...
2
votes
3answers
292 views

Coloring random points in an annulus

I have found the following random generator to generate points in an annulus in stackoverflow on stackoverflow ...
0
votes
1answer
62 views

Explanation for coloring of variables by code editor?

I was working on some homework just now, and I realized that some of my variables have different colors, and I am not sure why. In the example below f is black, ...
0
votes
0answers
21 views

ColorFunctionScaling [duplicate]

I am using ColorFunctionScaling in my plot but I don't want it to automatically make the min 0 and max 1. I want it to follow a fixed scale depending on height(or ...
1
vote
2answers
63 views

Is there a way to logically test an optional color input inside a module? [duplicate]

Suppose I create a Module that is expected to return a graphic that I will later use in a plotting procedure (e.g., with ...
1
vote
0answers
54 views

Individual ColorFunction with RGBColor

I want to create a special ColorFunction with RGBColor for my DensityPlot. A nice example is ...
6
votes
2answers
211 views

How to use Mathematica to turn a picture into low poly style?

I want to use Mathematica to turn a picture into low poly style. That is, to make the following conversion: Bill to Bill low poly(Using Image Triangulator App). I think the biggest difficulty is how ...
2
votes
2answers
77 views

StreamColorFunction ignored when setting to the RGB color

Recently I needed to color streamlines with exact color (e.g. RGBColor[0.1,0.478,0.5]). The help (http://reference.wolfram.com/language/ref/StreamColorFunction.html) suggests, that this can be ...
3
votes
2answers
88 views

Set the scale in ColorFunction

The following plot (A) ListLinePlot[{0,1,2,3},ColorFunction->"TemperatureMap"] goes from blue to read. The following plot (B) ...
1
vote
1answer
82 views

Missing arrow tips and colors

My main problem is: I plotted a curve here, but the tip of some arrows are missing. Why does this happen, and how can I fix this? Not the main problem: Also, I once tried to make the arrows with ...
12
votes
1answer
214 views

Is it possible to insert new colour schemes into ColorData?

Because of the standards in my field, for many plots I need to use (or at least end up using) rather narrowly defined colour schemes, and in particular the Matlab "Jet" scheme, which is well described ...
4
votes
1answer
181 views

Trial version 10 vs Version 10 Prerelease 13

When I open the new trial version (creation id 5099521; 10.0.30732.17750) I get these error messages and only a partial view of the "About" box I haven't run into any particular problem, except ...
14
votes
2answers
379 views

Convert spectral distribution to RGB color

Presume I have a spectrum as a function of wavelength (an example being the blackbody spectrum): I want to convert that to a single RGB color to display on-screen, i.e. the "color" of that object ...
0
votes
1answer
107 views

Plotting 2D color function on the plane [duplicate]

Suppose p is a some point in the plane. The function f[q] defined as ...
14
votes
4answers
1k views

How to change element color in Periodic Table?

The command ColorData["Atoms", "Panel"] generates a periodic table. As I don't want to reinvent the wheel, I asked myself how to change the color of each cell ...
6
votes
0answers
94 views

Is Mathematica 10 color managed?

With ColorProfileData[] Mathematica 10 can handle device-dependent color spaces. However, images with embedded color profiles, e.g. sRGB, are rendered and displayed ...
9
votes
1answer
97 views

Mathematica's “POV” export format ignores ColorFunction

I was playing with xslittlegrass's Pov-Ray package and more generally with the POV-conversion function ExportString[#, "POV"] &, and noticed that ...
1
vote
2answers
97 views

ColorFuntion input

Is there any input for ColorFunction, which ranges from Black for smallest values, goes through red-orange-yellow and ends in very bright yellow almost white for ...
5
votes
5answers
194 views

Providing a color function for ListPointPlot3D

Is there a way to write ListPointPlot3D expression, so when given a list of points, the the color of the points plotted is a function of the index/element number of ...
2
votes
1answer
115 views

Two discrete colors for surface with ParametricPlot3D

I am trying to create a plot of a surface that is yellow above the xy-plane (z>0), but blue below (z<0). My first attempt was to use ...
2
votes
1answer
60 views

Having variables appear aqua in user defined function [duplicate]

In many of the inbuilt mathematica function, variables appear aqua like in: However, when creating your own function, variables no longer have that green coloring and are instead colored like an ...
0
votes
1answer
111 views

Density map strange mapping of color

I tried to convince Mathematica 8 to plot a density map of a function: $$f(x,y) = \frac{2(x^2 - y^2)-1}{(x^2 + y^2)^2}$$ with color scheme called "TemperatureMap". At $x = \pm 1$, $y = 0$ it's ...
15
votes
2answers
1k views

What are the standard colors for plots in Mathematica 10? [duplicate]

Mathematica 10 release appears to have changed the default styling of plots: the most visible changes are thicker lines and different default colors. Thus, answers to this stackoverflow question are ...
1
vote
2answers
91 views

ParametricPlot - Problem with ColorFunction

I am unhappy with the following mapping: ...
0
votes
0answers
85 views

complicated color function and color bar legend (summary of the results from previous relevant posts)

At first let me apologize. I should have read the policies of this forum before attempting a post. I was more accustomed to a moderated forum like MathGroup than such an active one like the ...