Tagged Questions

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

learn more… | top users | synonyms (2)

4
votes
3answers
238 views
1
vote
2answers
112 views

How can I remove edges from my DiscretePlot?

By default, DiscretePlot displays "edges" along the sides and, prominently, align the top when ExtentSize -> Full is set. For ...
0
votes
0answers
61 views

Solving a system of three differential equations

I'm trying to create this coloured graph which I'm going to animate, but I'm stuck with solving a system of three differential equations: ...
7
votes
2answers
164 views

Why does StreamColorFunctionScaling refuse to turn off?

Consider this simple streamline plot: StreamPlot[{-y/10, x/10}, {x, -1, 1}, {y, -1, 1}, StreamColorFunction -> Function[{x, y, u, v}, Hue[v]]] The ...
0
votes
0answers
129 views

Visualization of Gaussian Curvature

I need to visualize Gaussian Curvature of a parametric surface. there is a solution here How to visualize the Gaussian curvature of a 3D surface? but Im not sure its working because when I draw a ...
1
vote
2answers
160 views
19
votes
4answers
594 views

How can I get the color of overlapping disks to be equal in any order?

When Graphics is used, necessarily the objects come in order. This affects which ones obscure others. When Opacity is not 1, it also affects the color. I would like the color of overlaps to depend ...
0
votes
1answer
102 views

ListDensityPlot with discrete bins [duplicate]

We consider a table of the form data = Flatten[Table[{i,j,f[i,j]},{i,1,ni},{j,1,nj}],1] The function f[i_,j_] has been made ...
3
votes
2answers
178 views

Contour coloring and (List)ContourPlot projection

I have two questions concerning (List)ContourPlots. Since they are related to a single visualization desire, I have combined the questions into a single post. I'm hoping that they will be easy to ...
7
votes
2answers
454 views

How to create an inverse pole figure color map

To interpret electron backscatter diffraction (EBSD) results, inverse pole figures are used. A three dimensional space of directions ([100], [110] and [111] for those who know about crystallography) ...
6
votes
2answers
384 views

Combining three R, G, B matrices into a single matrix of 3-tuples?

Working with Mathematica 8 on OSX here. I have three $1024 \times 1024$ matrices representing the counts from consecutive exposures onto a CCD with $R$, $G$, and $B$ filters on it, and am looking to ...
3
votes
3answers
157 views

Center Diverging color map on a matrix plot

I want to use the color function "RedBlueTones" and I want to center the map at a number. Then I want to blend in the red direction of I am greater than that number and blend in the blue direction if ...
3
votes
1answer
152 views

Plotting with ColorFunction -> GrayLevel - no black

This is probably a fairly trivial question, yet I have been unable to find an answer - help would be much appreciated! :) I am trying to plot a 28 x 28 matrix (tabulated data given here), containing ...
5
votes
1answer
280 views

Apply color function to matrix plot

I want to apply the following color rules to a large table of numbers. I have extracted a part of the table to use as an example. I would like to assign 5 different colors to 5 different ranges of ...
0
votes
1answer
42 views

How to known exactly what color assign “TemperatureMap” to a particular value? [closed]

Usually ColorData["TemperatureMap"] is using to coloring graphs and show how near is any value to 0(Blue), 1(Red), or in the mean (White). The question is: How ...
0
votes
2answers
148 views

How can I get a PieChart to be colored as I wish?

How to use the value of a funtion[label] to assign color to a piece of the pie? (edited after answer of kguler ) My dude is how to control the colors in ranges of a function of [labels] In this way ...
7
votes
3answers
233 views

Different colors for nodes in tree plot

I have some list of numbers which I am plotting using TreePlot. This is the code: ...
3
votes
3answers
260 views

Colorize a 3D distribution of points according to density

Suppose we have some random 3D distribution of points. I'll use the spherical ball defined below as an example and a starting point for the discussion here : ...
0
votes
0answers
16 views

different densityplots with same color range [duplicate]

for example, lets say there're two functions f1 and f2. 0<=f1<=1, 2<=f2<=3 but the two differs only by constants. (e.g. f1[x_,y_]:=(Sin[x]Sin[y])^2, f2[x_,y_]:=(Sin[x]Sin[y])^2+2) what i ...
3
votes
1answer
118 views

How can I change label colors in a colored chart?

I am trying to make a chart with labels, but I would like for the labels on the chart to be white for purposes of visibility. I am aware of the ...
0
votes
1answer
174 views

Calculate the centroid of a group of pixels with the same PixelValuePositions

My question is about how to recognise objects in a image. I would like to recognise objects of the same color. Then I want to calculate the centroid of these objects. I want to apply this calculation ...
1
vote
2answers
301 views

Multiple curves plotted with different colours [duplicate]

I am trying to use ColorFunction for 2 functions on the same plot. I only want the cubic equation to change colour. ...
11
votes
5answers
515 views

Default Chart Color Doesn't Match

I have looked through other posts to find out what the default plot color is, but when I use it, the color doesn't seem to match. Can anyone explain why I'm seeing different output? The reason I ask ...
3
votes
1answer
282 views

ContourPlot or DensityPlot ColorFunction with x, y and z arguments

Is it possible to apply a color function to ContourPlot or DensityPlot that is function of x, y and z, and not simply of z? Example: ...
0
votes
2answers
83 views

Coloring selected elements of a list created with Table [duplicate]

I have a function that returns a list of 100+ elements, using Table[]. For simplification, let's assume that it's just ...
4
votes
2answers
141 views

Coloring the points in a ListPlot with the value of another function [duplicate]

I'm a relative beginner in Mathematica, but after reading the forums for a long time, I couldn't understand one thing: I want to plot a list h. Let's call it ...
2
votes
2answers
183 views

DensityPlot Increase Information

I am trying to make a density plot in Mathematica, however the distribution of the plot is not as visible as I would like. I plotted the same function in python and it contains a greater visible range ...
1
vote
0answers
38 views

How do I change a ColorFunction filling to be top-down as opposed to left-right? [duplicate]

I've been stuck on a seemingly simple Graphics issue for quite a while now... I am trying to make a temperature distribution Plot that will have a colorFunction filling to show red when at a higher ...
0
votes
2answers
198 views

RGB numbers for pastel colordata [duplicate]

How can I get the rgb numbers for colors that show up in the colordata "pastel" so I can use them inside a regionplot? I am combining several regionplots and I would like each of the regionlots to be ...
8
votes
3answers
997 views

Which ColorFunction should I use to get such a gradient of blue-cyan-green-yellow-orange-red?

I want to get the effect in the above Figure. Here is my code: ...
1
vote
1answer
190 views

Part::pspec error returned when using a ListLinePlot ColorFunction variable as list index

In ListLinePlot, I'm attempting to construct my own ColorFunction for coloring points differently based on a third dimension of data not plotted to a specific axis. However, ColorFunction only uses ...
6
votes
4answers
625 views

Discrete ColorData scheme with n colors?

I am trying to visualize a problem I am working on. For this, I need $n$ distinct colors which are preferably easy to distinguish. (Obviously, the higher the $n$ is, the harder it is to distinguish ...
1
vote
1answer
109 views

GraphPlot with black edges no rendering function

Is there any way to make the edges of a GraphPlot black without tediously writing out a long "EdgeRenderingFunction"? I guess you could ask the same kind of question about vertex labeling. For ...
9
votes
1answer
133 views

What is the default ColorFunction for Image3D?

What is the default ColorFunction for Image3D? I find it a bit confusing that the most intense colour is not shown where the ...
2
votes
1answer
193 views

How can I create a colour image using raw black and white data? (FITS data cube)

I have a data cube containing pictures of a galaxy across a thousand wavelengths. I want to take the data for the image slides in the red and blue parts of the spectrum, and have them represented in ...
7
votes
2answers
229 views

Union of plotted regions as sum of colors

I wish to plot 2 functions $f$ and $g$ so that the region bounded by $f$ has color $c_f$, the region bounded by $g$ has color $c_g$, and the region bounded by both has color $c_f+c_g$. E.g. $c_f$ is ...
5
votes
1answer
98 views

Odd colourization for FourierParameters. UI bug?

The Mathematica UI colourizes the FourierParameters in the following ...
2
votes
2answers
233 views

Colors for multiple piecewise functions

I have the following $3$ piecewise functions, and I would like that f1, f2 and f3 have $3$ ...
9
votes
1answer
1k views

Logarithmic scale in a DensityPlot and its legend

I was recently faced with the task of creating a DensityPlot with a logarithmic colour scale, and with providing it with an appropriate legend. Since I could not find any resources to this effect on ...
1
vote
1answer
125 views

How to color ParametricPlot3D based on the parameter?

I have a set of ODEs I am solving, and then plotting (several) trajectories of in ParametricPlot3D. I want to have a color of each plot reflect the time (i.e. the Parameter) at that point. I tried ...
2
votes
1answer
135 views

Buttons Which Change Color, Each Time Pressed [closed]

I need to have 100 buttons, which their color is defined by the parity of number of times they are pressed: If they're pressed an even number of times their color is blue, and otherwise red. I don't ...
6
votes
3answers
310 views

Fill circle layers with colors according to read values from a plotted curve

I want to read (temperature) values from plotted (cooling) curves and visualize them in layered circles. I have an example made manually for clarification: 3 plotted curves, at certain time steps ...
10
votes
1answer
341 views

How to find a specific color in one picture?

In a picture, there are many different colors. How can I just want to find the position of one color. In the following picture, if I would like to find the coordinates of the position of blue, how can ...
3
votes
1answer
113 views

Frontend coloring of Table[x, {x, 0, x}]

I have a small question about how the Mathematica frontend colours in the variables that appear in (wrongly written) iterators. More specifically, I'm intrigued by the colour of the third ...
6
votes
1answer
289 views

My black text isn't black after exporting to PDF

Consider any standard plot, with true CMYK black text: ...
2
votes
1answer
164 views

How can I mix colors?

As far as I know if you combine Blue and Green the result is Cyan (using additive mixing). ...
1
vote
1answer
154 views

Remove overlapping red and green color

How to remove overlapping red and green color regions, leaving only red ones?
1
vote
1answer
133 views

Gradually coloring edges in terms of their vertices colors

In order to color Edges in a Graph after applying a function such as VertexDegree I did the ...
0
votes
0answers
239 views

Invert Colors Stylesheet White on Black

There have been a couple studies done that showed that white text on a black background increase recall of data. Although this is certainly debatable how might I invert the colors of Notebook font ...