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

learn more… | top users | synonyms (2)

1
vote
1answer
31 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
238 views

Extracting RGB color code from a plot

I have let Mathematica to draw a plot of some functions written as below: ...
1
vote
2answers
50 views

Colour bar for contour 2D graph [duplicate]

How could I plot the colour legend for my 2D contour graph ...
3
votes
2answers
106 views

Extracting unknown ColorFunction from Plot, Plot3D etc

I wonder if there is a way to extract existing ColorFunction and "override" it with a new function that will depend on original one. This question discusses ...
5
votes
2answers
159 views

How to rescale ColorData in a non-linear fashion?

I want to use Rescale on a ColorData, like this: ColorData[{"TemperatureMap", {-100, 10}}] ...
2
votes
1answer
96 views

How to add color to a knot

Is there a way to use a colorscheme to a KnotData image? One way is probably convert it to a parametric form and then use ...
3
votes
1answer
42 views

MatrixPlot ignores ColorFunction for 0 matrices

I noticed that when plotting a matrix with custom color function there seems to be a special behavior for matrices with just 0's. In this case the plot is simply white. If there is one non-zero ...
5
votes
1answer
144 views

How to interpolate colors on scattered points for a smooth visualization

I am a novice user, so please bear with me! I have a set of random points which are color-coded by some function. The point distribution is fairly dense so I should be able to see a smooth color ...
1
vote
1answer
45 views

Plot with Color Data as Third Coordinate of Ordered Pairs

Suppose I have a data set data={{0,0,-1},{0,1,-0.5},{1,1,0},{2,1,0.5},{2,2,1}}; where the first two coordinates are x and y values, and the third is input for ...
6
votes
4answers
569 views

How to recreate the gnuplot color scheme “AFM Hot” in Mathematica?

I'm trying to build an 3D AFM image from raw data with Mathematica. So how do I recreate the "AFM hot" color scheme? I've tried "SolarColors" and ...
0
votes
1answer
28 views

Recovering colour code from splitting colour scheme gradient into n colours

I'd like to get a colour scheme gradient (e.g. ColorData["TemperatureMap"]), split the domain into n equidistant points, and then recover the colour codes (RGB or ...
9
votes
2answers
253 views

How to define variable “Rainbow” curve colors?

Firstly, I'm not asking about blending a color gradient on a curve. I would like to make the curve color uniform on all its lenght instead, but the color should change dynamically while we slide a ...
1
vote
1answer
71 views

Color of figure keeps changing

I'm not sure this should be posted here, but I don't know where else to ask this question. Please feel free to refer to another more relevant SE if necessary. I plotted a figure with Mathematica, and ...
1
vote
1answer
53 views

Using ColorFunction to plot Cones with colors depending on orientation

I have an assembly of cones plotted with Graphics3D with positions and orientations according to data read from a file. Now I am using Hue to color the cones and I use the following code to plot them: ...
1
vote
3answers
167 views

How to apply a color gradient to a Rectangle primitive? [duplicate]

How can we apply a color gradient (say "Rainbow") to a Rectangle primitive ? Of course, I searched the documentation : http://reference.wolfram.com/language/ref/Rectangle.html, and also the site : ...
1
vote
1answer
52 views

Merging of multiple 3D plots with Show using unified ColorBar

This question follows my initial question that can be found here. I created the following 4D plot (3 spacial coordinate + color) by interpolating points separately. The full data (1.4Mb) can be ...
1
vote
0answers
51 views

Discrete color bar: height not adjusting

I am trying to adjust height of my color bar, but LegendMarkerSize is not doing what it is supposed to do. Code ...
0
votes
1answer
56 views

Simple ListPlot with different colors and labels [duplicate]

I want to plot a list of points where every point has a different colour. Is it also possible to label these points according to a list of sample names I have in Excel? Please help.
1
vote
2answers
85 views

Plot values of an $m\times n$ matrix on the complex plane with color varying along $m$

Let's say I have a complex valued matrix $\begin{pmatrix}1+I&2+2I&3+3I\\4+4I&5+5I&6+6I\end{pmatrix}$ represented by a list: ...
0
votes
1answer
116 views

rescaling ColorFunction for ListContourPlot

I have this question that I've been struggling with. I came across many similar questions, but those solutions do not work for me. What I looked at: Example 1 Example 2 Example 3 I apologize if I ...
0
votes
2answers
64 views

Color according to condition. [closed]

So, my problem is the following: I have the following table ...
1
vote
0answers
51 views

How to synchronise bar legends zeros for a set of DensityPlots? [duplicate]

I make a set of 6 DensityPlots with PlotLegends and different sets of params: ...
2
votes
1answer
91 views

Colors in ImageMarker

The symbol ImageMarker (new in 10.4) seems to ignore color commands: ...
0
votes
0answers
25 views

Crash when picking colours in Drawing Tools

This crash happens consistently, in Mathematica 10.2.0.0; I'm working on Scientific Linux 6. I open the Drawing Tools toolbox, open e.g. the Stroke drop down menu, and want to select the drawing ...
3
votes
4answers
142 views

Changing The Colour Of A Contour Plot

I have produced used the following code to create a contour plot: ContourPlot[Cos[x] + Cos[y], {x, 0, 4 Pi}, {y, 0, 4 Pi}] However, I would like to modify this ...
2
votes
2answers
142 views

ParametricPlot3D colorfunction for a specific region of an object

I have created a 3D parametric plot of an oblate spheroid, and I want to apply "TemperatureMap" as a colorfunction to its surface as a gradient in the Z direction. However, I only want to apply this ...
5
votes
0answers
51 views

How many clusters does DominantColors return?

Is there any documentation on how it automatically chooses the number of colors - does it use X-means or some other heuristic to determine the number of clusters it automatically returns?
2
votes
1answer
57 views

Replicate $\LaTeX$ PGF colormap/hot to Mathematica color scheme

I want to replicate the color scheme colormap/hot from $\LaTeX$ PGF's package pgfplots. The color scheme ...
5
votes
3answers
124 views

Specify range and reverse for colordata in contourplot

The following two examples work ...
1
vote
0answers
63 views

How to properly set ColorFunction and Specularity in ReliefPlot [closed]

I have two questions about ReliefPlot: How can I set the Specularity without changing ...
2
votes
1answer
119 views

Color a single contour from a ListContourPlot3D using values from a list

I want to map an electrostatic potential onto a density map. How can I color a single contour from a ListContourPlot3D using the values from another list? Make ...
0
votes
1answer
76 views

How to colorize curves intersection in a manipulate function

I need to show the intersection area of two curves, using the manipulate function in Mathematica. Here's a fully working example, and a preview below it : ...
3
votes
2answers
73 views

Automatically highlighting or coloring specific terms

I am using Mathematica to perform Newton quasi-linearization of the non-linear terms during discretization of PDEs for numerical solution. These expressions can involve tens of terms (depending on the ...
0
votes
1answer
58 views

How to add color to listplot

I have generated many points in a 2-dimensional space (x,y). How do I use color to represent different values of f(x,y) in ListPlot? Does ...
1
vote
2answers
85 views

Issues with ColorFunction

I have a function f[u,v] from $R^2 \to R$ that I want to use like coloring function over the surface: ...
2
votes
2answers
82 views

Special Coloring of two 3D Graphics with same values

As you can see in the picture below, I have plotted three different functions. Since two functions (red and blue) have the same value for a certain region (equity > 60), I was wondering how I can make ...
1
vote
1answer
83 views

Color of lines in ParametricPlot3D

I have a function of two variables which returns a vector of three components. For example func[l_,t_]:={ x=.... y=.... z=.... {x,y,z}} Now I ...
3
votes
2answers
129 views

ListDensityPlot with discrete values and colors

I have a file with mesh points and a value that indicates the domain the point belongs to https://www.dropbox.com/sh/ll9hb3oxxreufsg/AABvU7nufHhyHY3W4ausanJ6a?dl=0 I would like to plot using ...
4
votes
1answer
81 views

What is the default ColorFunction for MatrixPlot?

I think the the default ColorFunction for ArrayPlot is ...
9
votes
2answers
391 views

How do you convert RGBColor to an HTML-style string?

If I run some color processing function, like: Blend[RGBColor /@ {"#DC4E00", "#000000", "#822250", "#FCC11B"}] I get back a ...
3
votes
1answer
91 views

SmoothHistogram3D with a ColorFunction representing z-values of the data set

I'd like to make a 3d plot of a list of {x, y, z} points, where the height of the plot scales with the density (as in histogram) of the xy-values and the color ...
3
votes
1answer
93 views

mask specific range of RGB color frome an image with lower and upper threshold

I'm trying to detect a specific range of RGB color from an image with the lower threshold [180.150.0] and upper threshold [255,255,150]. I am just new on Mathematica please help me with clear ...
13
votes
2answers
183 views

How to prevent Dynamic activity with colour 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
80 views

Colour of lines in ContourPlot3D

How do I change the colour of these lines from black to, let's say, red? ...
7
votes
1answer
137 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 ...
2
votes
1answer
93 views

ListDensityPlot — bar legend colors inconsistent with plot value coloring [duplicate]

I want to make a ListDensityPlot of an array of values that happen to be 1. To mimic this, use: ...
29
votes
2answers
946 views

How can I use Kenneth Moreland's “Diverging Color Maps for Scientific Visualization” in plots?

I often want to plot two dimensional data that is centered around zero (for me, this is usually a 2D optical spectroscopy signal, but there are other cases), and the MATLAB "Jet" color scheme is ...
1
vote
2answers
102 views

Matching colors in BarLegend and colorfunction

How I can use Hue as color function in BarLegend in this density plot? ...
4
votes
2answers
160 views

How to customize color scheme to mimic that in Origin?

Origin is a software for plotting. The standard color scheme used by Origin is So how to mimic this color scheme in mathematica, so we can use it in ...