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

learn more… | top users | synonyms (2)

13
votes
4answers
552 views

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

If I plot an array with option ColorFunction -> "Rainbow": ...
-2
votes
0answers
26 views

List Contour Plot neglect the lower number of events

I have data in which the maximum number of events are concentrated in small region at the center of the figure and other lower number of events are extended to large distances from the center of the ...
0
votes
1answer
47 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
123 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
66 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 ...
3
votes
1answer
149 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
89 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
168 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
46 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
193 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
348 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
558 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
31 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 ...
2
votes
0answers
51 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 ...
6
votes
1answer
167 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
96 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
85 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
78 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
73 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
53 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
416 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
974 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
657 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 ...
1
vote
1answer
44 views

Color in Spherical3DPlot according to value

I want to colour a 3D plot according to it's value. I could only mange in one direction (say in 'z' direction) but I want to show them in all direction together. I have written the following code: <...
4
votes
2answers
447 views

ColorFunction based on data

I have a list of numbers, and I would like to plot them using ArrayPlot (which is easy, usually :)). I would like to be able to color the elements of the plot based on the average of the list: one ...
6
votes
2answers
1k views

Plot3D with coloring based on phase value of f

I'm reading a sample chapter of Visual Complex Functions by E. Wegert. Near the bottom of this page, there is a link "Download Sample pages 1 (pdf, 2.4 MB)" which allows you to read Chapter 2 of the ...
0
votes
1answer
48 views

ColorFunction causing division by zero error (going outside domain?) [duplicate]

On the following plot example, I get a division by zero error (10.4.1): ...
1
vote
2answers
109 views

Specify the color of each residue in a protein (PDB)?

I'm importing a *.pdb file containing a single protein. Mathematica automatically produces a plot of the protein. I want to specify the color of each residue independently, in this plot. Is this ...
2
votes
1answer
31 views

Scaling HSB colors for export

In Mathematica, Hue[h,s,b] uses HSB colors. However, unlike anything I've ever seen, the h, s...
6
votes
2answers
406 views

How to color the triangles of a mesh?

Given a mesh, I want to assign each triangle a color. I tried to do it in this way: ...
3
votes
0answers
62 views

How to build a ColorFunction that can take a non-numeric value? Blend returns an error

I'm trying to use an external package, defined here. This package has a private function called makeColorFunction that essentially works by taking an input color ...
4
votes
1answer
356 views

Visualization of Gaussian Curvature

I need to visualize Gaussian Curvature of a parametric surface. There is a solution in this math.SE post. However, I'm not sure its working because when I draw a sphere it's all white, but it should ...
3
votes
2answers
124 views

How can I make the color points in ChromaticityPlot[] joined?

So I'm using ChromaticityPlot[] to plot some colors as points: ...
2
votes
2answers
65 views

Selective background coloring

Consider this simple code: Grid[RandomInteger[{0, 1}, {10, 10}], Background -> LightBlue] Is it possible to modify the code so that the background only ...
0
votes
0answers
20 views

Asigning colors to residues position-specifically or feature-specifically in PDB file [duplicate]

I am dealing with a complex consists of 5 peptides in PDB file. I calculate some physical features of all the residues in the complex and would like to express them graphically. I would like to assign ...
0
votes
0answers
35 views

How to construct my own ColorFunction with the TemperatureMap range

I would like to draw the unit circle and define my own coloring function on it so that every point $e^{i\theta}$ of the unit circle will be colored according to said function from the range of colors ...
0
votes
3answers
81 views

How can I create a four dimensional plot (3D space + color) of the data provided? [duplicate]

I would like the x, y, and z axes to be reserved for the first three columns and the color to be reserved for the fourth column. I would like the output to have a color bar and color function. If you ...
0
votes
1answer
87 views

Concerning the default coloring made by Plot3D in 10.4 [closed]

Recently, I have installed Mathmatica 10.4, but I found out that when I use Plot3D, it gives me a mesh. In order to add color, I have to explicitly set ...
5
votes
2answers
114 views

How to color one “panel” of ListPlot3D

Here is my code: data = Table[{i, j, RandomInteger[{1, 10}]}, {i, 5}, {j, 5}]; thePlot = ListPlot3D[Flatten[data, 1], InterpolationOrder -> {0}] How can I ...
1
vote
1answer
55 views

List of Inequalities in RegionPlot with different colors [duplicate]

Starting from the example of the Documentation: RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Which gives a nice plot with two ...
3
votes
2answers
264 views

Extracting RGB color code from a plot

I have let Mathematica to draw a plot of some functions written as below: ...