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

learn more… | top users | synonyms (2)

0
votes
2answers
66 views

Color according to condition. [closed]

So, my problem is the following: I have the following table ...
1
vote
0answers
62 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
93 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
179 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
162 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
53 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
66 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 ...
6
votes
3answers
160 views

Specify range and reverse for colordata in contourplot

The following two examples work ...
1
vote
0answers
69 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
134 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
82 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
78 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 ...
1
vote
1answer
63 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
98 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
102 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
165 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
92 views

What is the default ColorFunction for MatrixPlot?

I think the the default ColorFunction for ArrayPlot is ColorNegate[RGBColor[{#, #, #}]] &...
10
votes
2answers
408 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
95 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
103 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 details....
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
81 views

Colour of lines in ContourPlot3D

How do I change the colour of these lines from black to, let's say, red? ...
9
votes
2answers
169 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
128 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
1k 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
120 views

Matching colors in BarLegend and colorfunction

How I can use Hue as color function in BarLegend in this density plot? ...
4
votes
2answers
167 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 DensityPlot...
-1
votes
1answer
91 views

Is it possible to colour only one column of a matrix? [closed]

I was wondering if it's possible to colour a column or a row in a matrix. For example is it possible to add colour for one of the rows/columns of the following matrixform code? ...
0
votes
1answer
107 views

How to colorize a 3D image [closed]

I have a 3D image where the values are in {1/4, 2/4, 3/4, 4/4} and its size is {134, 134, 67}. I used Image3D to display it. However, I am wondering if there is a possibility to colorize the image by ...
6
votes
1answer
164 views

Is it possible to apply a ColorGradient to a string Style?

After reading through the language reference on Style, ColorSchemes, ColorData and ColorFunction, I am at a loss as how to make a string appear with gradient colors. And now that I am curious, I am ...
3
votes
1answer
149 views

default RGB coloring

I am playing with some basic genetic algorithms to recreate input images by transparent plane figures (similar like here:). Everything would work great but the speed is terrible. I was looking for a ...
1
vote
0answers
71 views

Ergonomic night time reading settings [duplicate]

I was wondering if Mathematica had a built-in ergonomically safe night time reading mode for the notebooks. I was thinking of setting something up myself but I do not know the ergonomics/eye safety ...
3
votes
2answers
119 views

ListPlot - Conditional Coloring of PlotPoints

...
4
votes
1answer
157 views

Render Graphics3D of anatomical data in color

I am trying to render a bone structure in color in Mathematica 10.3, but none of the obvious methods seem to work: ...
3
votes
1answer
101 views

DensityPlot with the same color scale in Show

I am trying to align color scale for continuous plots that have different ranges. Here the color scale exhibits a discontinuity even with the same PlotRange ...
2
votes
1answer
83 views

ColorDataFunctions applied to Tables of Graphics?

I'm trying to make a graphic according to a List, n. n has integer values that go from ...
1
vote
1answer
115 views

How to color-code a 3D point plot

I am doing a Finite Difference Method for 3D heat diffusion, so I need my ListPointPlot3D to be color coded on a range from deep red to deep blue depending on the temperature of the point. My ...
3
votes
2answers
144 views

Color vector according to angle

One can use the function VectorColorFunction in VectorPlot3d to color vectors according to their norms. How to color vectors ...
7
votes
3answers
217 views

ListPlot will not color markers in accordance with my color function

I have the following color table: colTable = {{Black}, Table[{Blend[{Blue, Green, Yellow, Red}, x]}, {x, 1/2000, 1, 1/2000}]}; colTable = Flatten[colTable]; ...
2
votes
1answer
49 views

Plot a function that gives a color [duplicate]

I have a function that takes in two numbers and returns a RGB color. I would like to plot that function on a 2D surface. How can I do that?
0
votes
0answers
22 views

How to get an image when having indices of pixels [duplicate]

I am doing a perspective projection of a list of voxel V={v1,v2,v3,...,vn} using the perspective projection matrix 3*4 to get the indices of each pixel pi=(xi,yi). pi=P*vi Once I get the indices, I ...
2
votes
2answers
89 views

mesh vertex coloring

So I created a mesh like this: mesh2 = ToElementMesh[FullRegion[2], {{1, 10}, {1, 10}}, MaxCellMeasure -> 1.]; and want to plot it, coloring the squares: <...
0
votes
0answers
43 views

ColorFunction on a surface [duplicate]

I have a surface in 3D space which is defined by equation in ContourPlot3D. For simplicity let me use x + y == z surface (in reality I have a transcendental ...
4
votes
2answers
435 views

About Hue's period

So we can see that Hue is a periodic function. Its period is 1. And the specifier from documentation. Sorry for I cannot cite my local language documentation. Let ...
6
votes
1answer
121 views

Plotting piecewise functions with distinct colors - issue found [duplicate]

I've been making use of the following thread: Plotting piecewise function with distinct colors in each section A handy feature I found there goes as follows: ...
1
vote
1answer
92 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 ...
3
votes
1answer
133 views

How to pick a color differing significantly from the colors already in a given color list?

Suppose that we want to color a number of objects. We start by selecting some color (randomly). Then we want the color of the next object to be significantly different from the colors already used (...