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

learn more… | top users | synonyms (2)

4
votes
2answers
180 views

How to turn a colour entity into a colour directive?

I am not experienced with Wolfram Knowledgebase queries and working with entities. What is the "correct" way to convert a colour entity into a colour directive? Example: ...
8
votes
0answers
40 views

What is the effect of giving ColorFunctionScaling a numerical argument?

(by making a mistake) I realised that ColorFunctionScaling can take a list of numerical arguments rather than just booleans. The following is true for ...
3
votes
2answers
48 views

GeoRegionValuePlot not using ColorFunction colours

I have a custom Blend for use with GeoRegionValuePlot's ColorFunction option. ...
2
votes
1answer
49 views

Colouring of 3DPlot

I have a ParametricPlot3D in which I would like to change colouring to meet the rest of my work. There seems to be some orange colour as the basic one which is ...
1
vote
0answers
47 views

colored array of output

I would like to have colored array of an output. Assume for example we have an array of numbers or texts as output and we want different colors for different classes of them. For example A={...
3
votes
2answers
175 views

ColorFunction with the function of luminance

I want to have a DensityPlot or ListDensityPlot, whose color function is a rainbow but whose luminance is given by another ...
4
votes
2answers
141 views

Change lighting in ChromaticityPlot3D

It looks to me like ChromaticityPlot3D has some default lighting, but unlike most Graphics3D functions the Lighting option doesn't seem to have any effect. However, the documentation states "...
9
votes
2answers
490 views

How to access “Choose Color Scheme” Programmatically

I am designing an App and I want to use the "Choose Color Scheme" tools inside Button. I am looking to have this tool in popup window when the Button is clicked but I can't find the command to get ...
2
votes
2answers
147 views

How do I create a color plot that varies with angle?

I want to create a plot with a hue that varies as $l\theta$. $l$ is an integer and $\theta$ is measured modulo $2\pi$. My specific case is $l=10$, but I want to be able to vary $l$ as well. I have ...
6
votes
2answers
126 views

How to scale values for ColorFunction in SliceContourPlot3D?

Trying to help out in the question, Finite Elements 3D, I came across this behavior of SliceContourPlot3D: ...
3
votes
2answers
56 views

How to change the colour of parts of a 3D plot, rather than the whole figure?

By exporting Matlab data to a txt file and importing it with List3DPlot, I plotted the density of states in a nanowire ...
1
vote
1answer
44 views

Help with ColorFunction [duplicate]

I'm trying to graph a list of data with ListDensityPlot. My idea is to color negative values in red, zero in white and positive values in blue. I created a ...
2
votes
2answers
76 views

Plot with a reference line and shaded / colored region

How can I add horizontal reference lines at 4 and 6 (y-axis) and shading below each reference line on the following plot? Plot[i, {i, 1, 10}] Thank you!
2
votes
0answers
28 views

How to specify custom “ColorScheme” for “GradientScaleBoxWhisker” ChartElementFunction and Whiskers & Fences of BoxWhiskerChart?

With BoxWhiskerChart you can specify a gradient scale fill for the boxes using the ChartElementFunctionand the ...
0
votes
1answer
65 views
2
votes
1answer
47 views

MinimumVertexColoring does not work

g=RandomGraph[{5,6}] MinimumVertexColoring[g] I am using MacOS and Wolfram Mathematica 10.4
10
votes
6answers
314 views

Coloring an image with two Color schemes based on a Range

I would like to color an image generated from some data, using two color schemes based on two ranges of the data. This is my attempt: ...
3
votes
1answer
70 views

Help with GeoRegionValuePlot

I am trying to get a map with 4 colors, I have several regions with values from 0 to 3 and I want to color those regions with value 0 in white, with value 1 in yellow, with value 2 in orange and with ...
2
votes
1answer
759 views

White regions in DensityPlot — is this a bug with ColorFunctionScaling?

Is this a bug with ColorFunctionScaling? When I try to supply my own ColorFunction Mathematica seems to partially ignore it, ...
6
votes
3answers
1k views

Adapt ColorFunction in Array Plot

The problem I'm facing is how to adapt ColorFunction so that it ranges from green (low values) to red (high values): ...
51
votes
4answers
2k views

Changing color of an object in an image

Consider the following image: How can I change all red colors in this image into (for example) blue.
3
votes
0answers
45 views

ContourPlot with custom ColorFunction: Odd behavior of “Contours” option?

I am trying to generate a blue-cyan-green-yellow-red color gradient that is linear in Hue. The code ...
13
votes
4answers
556 views

Impose the color for one discrete value above a color predefined gradient

If I plot an array with option ColorFunction -> "Rainbow": ...
0
votes
1answer
53 views

Color a list of 2D points continuously

I have a list of 3-tuples. First 2 positions are coordinates in $R^2$, the third specifies concentration of a chemical at that point, which I want to render in color. Here's what the list looks like: ...
34
votes
4answers
7k 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 ...
9
votes
1answer
127 views

ArrayPlot with a user-defined color function is misbehaving

Bug introduced in 10.0 and persisting through 10.4.1 or later I am using ArrayPlot to show some arrays with values from 0 to 1. I want 0 to be black and 1 to be ...
0
votes
1answer
70 views

Coloring data in Mathematica

I am trying to put color gradient on my data, or want values above some number to appear red and green below that number. For my situation the number is 5.14*10^(-13). I have X, Y, and Z axis data, ...
14
votes
2answers
202 views

How to prevent Dynamic activity with color swatches in V10+

Since version 10, if I type e.g. an RGBColor or simply a named color, a dynamic colour swatch is returned. Same goes for when you e.g. extract colours from a ...
4
votes
2answers
162 views

Delete all mostly white images in a folder

I need to delete images that are all or mostly white, here's a sample of them: Here is my my code finds, my code is not very accurate nor efficient: ...
2
votes
2answers
96 views

Implementing a custom colormap [closed]

I have a question about how to implement a custom colormap, such as those specified on http://www.kennethmoreland.com/color-advice/. In particular I will be talking about the 'Extended Kindlmann' map, ...
9
votes
2answers
171 views

Why does ColorConvert give a different answer than other websites when converting from RGB to XYZ?

I was recently making a function that needed to convert between several different colorspaces, and I decided to do it manually. @J.M. used many builtin functions to accomplish the same goal. When I ...
1
vote
0answers
70 views

Build basic Adobe Kuler-type construction: improving performance / speed

Adobe Kuler is a useful web tool to create colour palettes, but it is limited to 5 colours. I am trying to make a basic Kuler-type construction, but it is very slow, and crashes on my computer for > ...
4
votes
1answer
55 views

Anomalous scaling in GeoRegionValuePlot when using non-default color scheme

I found this plot online, and thought "I bet I could do that with a one-liner using GeoRegionValuePlot". But then it turns out that you are much better off ...
9
votes
3answers
2k 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) ...
1
vote
2answers
201 views

Analyze pixel color distribution by sampling image over a defined area size (or grid?)

I have an image of different colored particles (red, green, and yellow) that are all mixed up against a black background. I am interested in knowing what color each particle has for its neighbor (if ...
5
votes
1answer
365 views

How do I produce a BarLegend with the default coloring of a ContourPlot, using Legended?

I have a series of ContourPlots that I want to compare in a GraphicsRow environment. I want to add a single legend for all three ...
13
votes
4answers
566 views

Quirk in VertexColors interpolation when displaying Polygon

When using VertexColors, the docs state: The interior of the polygon is colored by interpolating between the colors specified by ...
0
votes
1answer
33 views

List RGB Values from DominantColors [duplicate]

I have taken an screenshot using the GUIScreenShot function from GUIKit and then evaluated the dominant colours in the image. I ...
7
votes
1answer
179 views

Can you make the new “Choose color scheme” helper larger?

Mathematica 10 has a cool new "color data chooser" feature: My question is: Can you make that window larger? Right now, I can only see 3-4 color schemes at once, even though all 51 gradients would ...
0
votes
2answers
99 views

How do I color an Image generated from data such that one range of values is one color gradient and the others another color gradient [closed]

I can generate a Gray scale Image from some data that I collect. However I am trying to figure out how to generate the image with two color gradients or color scales based on the value. For example ...
3
votes
1answer
89 views

Complex Plot with Imaginary Part encoded in color

Heyhey, I wanted to plot the complex cosine in a 3D graphic where the real part is given by the surface, while the imaginary part shall be indicated by the color. Therefor, I tried the code ...
1
vote
1answer
82 views

How to fill the heart curve with solid red color?

The parametric equation of the heart curve is from this link $$\left\{\quad \begin{array}{rcl} x&=&\cos {t} \cdot\sin {t} \cdot\ln \left| t\right| \\[10pt] y&=&\left| t\right| ^{0....
6
votes
6answers
3k views

How do I fill in a circle made by ParametricPlot with one solid color?

I have a very simple question but I am new with Mathematica. I made a circle on a parametric plot and I made the line black. I want to make the inside of the circle on the parametric plot red. So the ...
2
votes
1answer
88 views

Coloring (Temperature) surface of parametric 3D plot

I am stuck on figuring out how to do a "Temperature" Color scheme for a surface plotted using ParametricPlot3D. As an example, here is a plot of one example surface. This is a antenna gain plot of ...
0
votes
1answer
56 views

How to Write a code to automatically generate the planckian locus in (u,v) space [duplicate]

in the CIE XYZ color space the three coordinates defining an electromagnetic spectrum are given by XT=∫x( λ ) M( λ , T )dλ, YT=∫y( λ ) M( λ ,T )...
21
votes
4answers
3k views

Convert spectral distribution to RGB color

Presume that 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 ...
5
votes
2answers
421 views

How can I create an interactive ColorFunction using Manipulate?

I am trying to specify my own colors and scaling for the ColorFunction in ListDensityPlot. I have several lists of 2D values ...
31
votes
3answers
998 views

A better “VisibleSpectrum” function?

Since ColorData["VisibleSpectrum"] is wrong, I would like to have a more accurate function to use. Can this information be extracted from Mathematica itself?
6
votes
2answers
660 views

Plotting spherical surfaces

I am trying to make surface plots of squashed spheres. The spheres are defined by a list of points. For simplicity, consider the round sphere: ...
4
votes
3answers
1k views

Define a color function based on color samples obtained from ColorBrewer

I am quite new to Mathematica and I am searching for a way to create a smooth colormap based on the samples given by ColorBrewer. Is it possible to create a interpolated function from those sample ...