# Tagged Questions

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

46 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: <...
450 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 ...
2k 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 ...
49 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): ...
114 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 ...
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...
414 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: ...
63 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 ...
373 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 ...
130 views

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

So I'm using ChromaticityPlot[] to plot some colors as points: ...
71 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 ...
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 ...
392 views

### How to make a 3d surface/point plot with color based on a list

This is my data: ...
39 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 ...
83 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 ...
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 ...
115 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 ...
65 views

...
63 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 ...
272 views

### Extracting RGB color code from a plot

I have let Mathematica to draw a plot of some functions written as below: ...
95 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: ...
54 views

### Colour bar for contour 2D graph [duplicate]

How could I plot the colour legend for my 2D contour graph ...
479 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. ...
121 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 ...
76 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 ...
196 views

### How to rescale ColorData in a non-linear fashion?

I want to use Rescale on a ColorData, like this: ColorData[{"TemperatureMap", {-100, 10}}] ...
107 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 ...
845 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 ...
62 views

### MatrixPlot ignores ColorFunction for 0 matrices [duplicate]

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 ...
161 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 ...
57 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 ...
258 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 (...
103 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: ...
633 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 ...
66 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: ...
93 views

### Colors in ImageMarker

The symbol ImageMarker (new in 10.4) seems to ignore color commands: ...
269 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 ...
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 ...
297 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 ...
63 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 ...
204 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 : ...
67 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 ...
70 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.
132 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 ...
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 ...
124 views

### Erroneous color function for ContourPlot when the function has a small positive region and the PlotRange is specified manually

Consider this ContourPlot ...
69 views

### Color according to condition. [closed]

So, my problem is the following: I have the following table ...
63 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: ...