Questions on the color models, schemes, named colors and color functions supported by Mathematica.
2
votes
1answer
103 views
Why is the test in my ColorFunction not behaving as expected?
In my code I have a ColorFunction that is meant to highlight all values of $f(x)$ that are greater than $x$
...
2
votes
2answers
423 views
How to assign different colors to list plotted in ParametricPlot? [duplicate]
Possible Duplicate:
Difference in Plot when using Evaluate vs when not using Evaluate
I am plotting galaxies and I would like to color them according to their redshift values using a ...
22
votes
4answers
1k views
Density plot on the surface of sphere
I would like to make density plots of a list of (size 2 or 3) spherical harmonics on the surface of a sphere. I'd like to plot it so that each element of that list is using a different color (red ...
12
votes
2answers
526 views
Using a ListDensityPlot to map color onto a ListPlot3D graph
I have a 3 column list of data points. The first two columns correspond to x and y coordinates, with data points creating a surface in the z direction from column 3. This gives me a nice wavy ...
26
votes
4answers
1k views
How to change the default ColorData used in Mathematica's Plot?
This question leads on from the recent question What are the standard colors for plots in Mathematica?
There it was determined that the default color palette used by ...
7
votes
2answers
362 views
Coloring each face of a Cuboid with a different color
Is there a way to color each face of a Cuboid with a different color?
I looked in the help but couldn't find anything. I found this Coloring the faces of a 3D ...
15
votes
4answers
544 views
How can I create a ColorFunction using Blend?
As shown below, I am trying to find a cool way to show some variance weighted deviation from the mean. There are 10 attributes that I compute the distance for.
How can I add a color function such ...
4
votes
1answer
550 views
Fixed color scale in multiple density plots
I think there should be a simple solution for my current problem, but neither StackOverflow (or the help of Mathematica) or Google have it.
I have to plot multiple density plots with a color ...
6
votes
4answers
339 views
Determining the RGB values of the default plot color
In Mathematica 7, the default plot color is a purple-like color (although I think it is not Purple). Is it possible to use Mathematica to determine the RGB color ...
20
votes
6answers
698 views
ColorData[“VisibleSpectrum”] is wrong?
I am trying to visualize the visible spectrum using the built-in ColorData["VisibleSpectrum"] function which "colors based on light wavelength in nanometers". But I ...
10
votes
2answers
337 views
How to vary color of fill between listplots based on y-distance between them
I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
8
votes
2answers
403 views
ColorFunction in Histogram[]
Let's say I have a Histogram:
Histogram[RandomVariate[NormalDistribution[10, 2], 500]]
and I want the bars positioned to ...
3
votes
2answers
179 views
Plotting two functions with dependent input function
I have defined a function:
myJ2[n_] := 1/n* Total[RandomVariate[NormalDistribution[0, 1], n]^2]
This is basically an approximation to the gaussian integral. I ...
11
votes
6answers
373 views
Overlapping Red and Green ArrayPlots to show yellow intersections
Let's say I have two ArrayPlot[]s. One is in redscale and the other is in greenscale, such that the lowest value is white and the highest value is pure red or ...
6
votes
3answers
257 views
Changing background colour of a Manipulate element
Please consider the following:
Manipulate[Plot[Sin[x (1 + a x)], {x, 0, 6}], {a, 0, 2}];
Now, I would like to change the background colour to yellow. I tried ...
2
votes
1answer
178 views
Creating multicolored meshed plots (connected scatter plots) using ListPlot
I would like to make colored scatter plots where the dots are connected by lines. I have tried the following, using Joined->True to connect the dots and ...
0
votes
1answer
164 views
how to dynamically change color of setterbar
I have a SetterBar with 3 values. I want that when I hover the cursor on any of the SetterBar value,it changes its color and ...
5
votes
2answers
236 views
Monochrome PNG (and GIF) Export
Is there a way to Export expressions to a monochrome PNG?
I have tried the ColorQuantize function which is mentioned in ...
16
votes
4answers
548 views
Create colour with given lightness value
How can I create a colour of my chosen hue with a given fixed lightness level?
For example, how can I create a reddish colour, col, so that ...
5
votes
2answers
268 views
Sharp ListDensityPlot
I have some quantity varying with time (horizontal axis of the plot): it first oscillates then it has a jump (larger than the amplitude of the oscillations), then it continues oscillating. I have that ...
5
votes
1answer
520 views
ListContourPlot-ColorFunction
How can I use ONLY the central 90% of the spectrum, not the whole range? For example, I do not like to see the lowest values in purple, but in deep blue color.
...
6
votes
1answer
251 views
Color linear interpolation of ParametricPlot3D
I am looking for any ideas about how to colorize an ellipsoid with a custom gradient style or by a Blend function. I would like to colorize ellipsoid as follows:
...
3
votes
2answers
368 views
Use ColorFunction in ListLinePlot with If
The following code
ListLinePlot[{2, 4, 6, 8, 10, 12},
ColorFunction -> Function[{x, y}, If[x <= 3, Blue, Red]]]
should produce blue lines for $x\le3$ and ...
4
votes
2answers
191 views
Color based on (discrete) derivative of function
I am making a very basic stock simulation. I want ListLinePlot to color my stock viewer based on whether the price went up or down from the previous price. Here is ...
14
votes
2answers
1k views
How to save plots in grayscale
As sophomoric as this question seems, how should I save plots in grayscale in Mathematica?
I generally like eps images for their scalability and I use ghostscript or other third party perl scripts ...
9
votes
1answer
168 views
Error Using Sow in DensityHistogram with ColorFunction
To find the color values used in a plot, I was using Sow as shown here:
...
8
votes
1answer
242 views
Discrete coloring in Plots
I would like to have a plot that is filled to the axis with Green if the y value is greater than 10, and ...
11
votes
2answers
214 views
Using uniform coloring in MatrixPlot
I have a rectangular matrix, which is m-by-10. Each element is either 0 or 1. I would like 0 to correspond to white elements, and 1 to red elements. This works ...
15
votes
2answers
323 views
Exporting a dashed plot with a color gradient to a vector graphics format ruins the dashing
When exporting a dashed plot with a color gradient to a vector graphics format such as EPS or PDF, the dashing is partly ruined. For example, this command:
...
23
votes
1answer
229 views
Is there a way to access the (lexically) current colour inside Graphics?
Note that this is not a duplicate of the question over there. That one asks for a given point, while I'm asking about the lexical structure (which, of course, is not directly related to any point in ...
7
votes
4answers
971 views
Coloring Points in a List Plot [duplicate]
Possible Duplicate:
ListPlot with each point a different color and a legend bar
I want to color the points in a list plot using a function of the (x,y) values.
I tried this (example with ...
6
votes
1answer
254 views
Way to find color at a point in a Graphics?
I need to figure out a way to find out the RGB color value at a certain coordinate in a Graphics object. The Graphics object I am dealing with is continually Dynamically updated, so it is made of ...
9
votes
4answers
562 views
Height-dependent filling color in 3D Data Plots
I would like to have the filling of my ListPlot3D display the same color than the one applied to the data. This question makes sense only in the case of conditional coloring of data (according to ...


