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

learn more… | top users | synonyms (2)

1
vote
1answer
29 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
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: ...
1
vote
2answers
50 views

Colour bar for contour 2D graph [duplicate]

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

Changing the atom color for plotting xyz-files

Mathematica takes the standard color code for atoms when plotting an *.xyz file, but I want to customize the color for the specific atoms. I really become desperate as I did not get it so far. ...
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 ...
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 ...
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 ...
4
votes
2answers
670 views

Set the same color scale across multiple ListContourPlots?

This is probably straightforward - but how would I set the same color scale across multiple ListContourPlots? if I have values from 10 to 25 on one ListContourPlot and values from 40 to 100 on ...
3
votes
1answer
41 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
143 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 ...
3
votes
1answer
247 views

logticks in a colorbar

I have a question on using logarithmic ticks in a colorbar in Mathematica 8.0 . I use the package ColorbarPlot (...
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: ...
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 ...
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: ...
2
votes
1answer
91 views

Colors in ImageMarker

The symbol ImageMarker (new in 10.4) seems to ignore color commands: ...
8
votes
2answers
251 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 ...
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 ...
12
votes
3answers
241 views

Inverse of Interpreter[“Color”]: Convert a RGBColor to a natural language color name

What is the best way to create the inverse function of Interpreter["Color"]? That function takes a natural language color name like ...
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
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
0answers
50 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
55 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.
0
votes
1answer
115 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 ...
10
votes
6answers
1k views

can the color in MeshStyle be specified by a ColorFunction, such as “SunsetColors” for example. If so, what is the correct syntax?

This is an example given in Help: Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, MeshStyle -> Gray] Could this be changed to something like ...
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 ...
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: ...
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 ...
26
votes
3answers
2k views

How to change ColorFunction after plotting

Say I have a plot like plot = DensityPlot[ Exp[-((x-5)^2+(y-5)^2)/5^2], {x, 0, 10}, {y, 0, 10}, PlotRange -> {0,1} ] Is there a way to ...
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 ...
27
votes
7answers
7k views

Changing the background color of the framed region of a plot

I frequently generate framed plots like this: Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True] Is there an easy way to change the background color of the framed ...
42
votes
4answers
6k 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 ...
3
votes
2answers
3k views

Define a color function using Piecewise

How can I define a ColorFunction for my ContourPlot using Piecewise? For example, after ...
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?
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 ...
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 ...
3
votes
2answers
78 views

Coloring specific elements of sets with a prime modified order in an array plot

I have a set of sets: {{1}, {0}, {1, 1}, {0}, {1, 0, 1}, {0}, {1, 1, 1, 1}, {0}, {1, 0, 0, 0, 1}} I’m seeking to apply a color rule to only every other set, starting from the first (from left to ...
0
votes
0answers
49 views

Coloring all elements in prime ordered sets amongst a set of sets [duplicate]

So I have a set of sets. I want only those sets whose order amongst the sets plus one is prime to be colored (all the same, anything but the standard black). Any ideas? ArrayPlot[{{1}, {1, 1}, {1, 1, ...
4
votes
1answer
81 views

What is the default ColorFunction for MatrixPlot?

I think the the default ColorFunction for ArrayPlot is ...
1
vote
1answer
80 views

Color vectors according to a user-defined function

V[x_,z_]:=x/Sqrt[x^2+z^2]; Ex[x_,z_]=-D[V[x,z],x]; Ez[x_,z_]=-D[V[x,z],z]; The electric field components (Ex,Ez) are to be plotted as a vector field in the x-z ...
0
votes
1answer
115 views

ContourPlot color problems [closed]

I tried to use contourplot to a 2D fucntion with rescaled color, the code is given below ...
5
votes
1answer
331 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 ...
2
votes
2answers
208 views

Individual ColorFunction with RGBColor [duplicate]

I want to create a custom ColorFunction using RGBColor for my DensityPlot. A nice example is ...
5
votes
3answers
124 views
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 ...
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 ...