# Questions tagged [color]

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

1,085 questions
Filter by
Sorted by
Tagged with
134 views

### How to force MatrixPlot to plot considering a whole color spectrum?

I am trying to do the following: ...
66 views

### VertexColors seems to blend colours unevenly

VertexColors seems to blend colours unevenly, often with a "stripe" between vertices. Compare: ...
107 views

### What is the underlying interpolation in "BrightBands"/"DarkBands" color scheme?

Using the bookmarked conversation mentioned in this answer, I was able to extract the colors (and their parametric positions) of the Mathematica color scheme ...
38 views

### PlotStyle not coloring individual points correctly

I am trying to create a 3D scatter plot, where each point is colored according to a fourth parameter (not corresponding to any of the values on the axes). To do this, I generated a list of colors, ...
28 views

### ColorFunction scaling based on third column in matrix

I would like to plot data so that the first column is in the x axis, the second column is in the y axis and the third column is the input for a custom ColorFunction. The ColorFunction is simple: white ...
48 views

### How to get rid of the blue color at the borders of RegionPlot3D, and have a plot with yellow color only?

I use RegionPlot3D for the given condition ...
56 views

### Using MaTeX with outline to create transparency around the equation

Is there a way to combine outline around equations as described here, with the ideas proposed here to create images with transparent background? Currently, since outline requires a color, I end up ...
36 views

### Understanding how Hue in ColorFunction cycles through colors

When I use Plot[Exp[x], {x, -1, 1}, ColorFunction -> Function[{x, y}, Hue[x]]] the output is acurve with colors cycling once from red to red. But when I do ...
30 views

### What's the color function for ComplexPlot's "CyclicArg"?

I'm having trouble finding the color function in Mathematica (12.3) mapping arg(f) to "CyclicArg" in ComplexPlot. ColorData["ThemeGradients"] ...
97 views

### How can I get a consistent colouring scheme in ListDensityPlot?

I am creating nice plots doing something like this: However, in some cases some classes are not present. So eg if class 1 is missing in data2 , then the colour of the other classes are shifted by one ...
104 views

### What is better color scheme to show more constrast in this case?

Is there a better color scheme to make the lines and legends boxes more contranst? I'm using ColorData but there are some colors that look similar so I'm ...
71 views

...
42 views

### Graphics3D default properties? [duplicate]

I realized that it is impossible to reproduce default sphere only by declaring its color. ...
24 views

### ComplexInfinity only encountered with ColorFunction when plotting HurwitzZeta

I am using Mathematica 11, I am plotting HurwitzZeta[2,x] and its curvature on x$\in$[1,4]. Everything is fine when I try to plot the two. ...
56 views

### Cursor (prompt) color using black background

I am dealing with a prompt (blinking cursor) color problem in Mathematica 12.3.0. I am using a black theme (my input cells have black background) and, during the cell editing, the prompt blinks in ...
148 views

### Density Plot in 3D

I have the following code: ...
76 views

### Customizing Hue function

Can I approximating the following Tex style color function with Hue function(or other functions): I tried to use Hue: ...
56 views

### Is the default color for axis label black in RegionPlot?

I had no suspect that the default color for axis label and ticks would be black. However, after exporting an image to pdf, it seems that these colors are not black for me. Indeed, by checking the ...
72 views

### How to change the default color of the "joined" lines in BarChart function?

is there any way to change the default color of the joined lines in BarChart function? As the joined function turns on (i.e., Joined -> True), the joined lines are plotted automatically with the ...
79 views

### Making Static Buttons

Is it possible to get a button that remains still when clicked? That is, it does not show the temporary pressed frames This also happens when I set ...
52 views

### Coloring a specific value in a axis in a Plot

I would like to Plot a function, and the a specific value in the y-axis. For example, I would like y=1.5 on the y axis to be red. Is this possible? ...
33 views

### In my stylesheet how to change number color to red?

I would like to have a notebook stylesheet which colors any number e.g., {1,2,{3}} red. I tried Preferences ,Appearance, LocalVariables etc.but there numbers stay black. How can I change my stylesheet?...
41 views

### Plotting Triplet Points with Unique Colors for Each Point

I have a set of eigenvalue triplets from some 3x3 matrices and I would like to plot them on the complex plane. My goal is to plot them such that each triplet has a unique color that identifies the ...
146 views

### How to separate n colors from image into n binary images?

I have some images in which I expect to have some red, green, blue, or yellow areas. Like this image: myImage = Now, I'd like to get 4 binary images, representing ...
131 views

### How to use ListLinePlot to plot a multicolored line, where the colors are given by an array?

I have a 2D dataset with three columns. The first two columns are x and y, the third one is z. I want to plot a line with the colors specified by the z data. Here is an ideal example, the only problem ...
20 views

### Combine two streamplots with different position dependent color functions

Building from replies to other posts I have come up with a combination of two stream plots which has a position dependent color function for stream lines which the same for the two plots a way to &...
3k views

### All that doesn't glitter isn't gold

I would like to color some objects in metallic shades like gold and silver. Various web sources suggest that the gold is a variant of yellow with RGB values 83.14% red, 68.63% green, and 21.57% blue. ...
84 views

### Why does ButtonBar ignore Background option and is it possible to color the actual face of the buttons in a ButtonBar?

Notice how I have Background->color set in each BUttonBarbut it is completely ignored. How do I fix this? Edit: (1) Bob ...
80 views

### ColorReplace with thresholds and connected components

I would like to replace the colors in this drawing (called img) with colors of my choice. (For simplicity, we can assume my desired colors are ...
54 views

### Specifying Contours in "CyclicReImLogAbs" for ComplexPlot/ComplexPlot3D

How can I specify where and/or how many contours appear in ComplexPlot and ComplexPlot3D when using the "CyclicReImLogAbs" color function? I'm referring specifically to the black and white ...
53 views

### ColorFunctionScaling and OpacityFunctionScaling with values other than 0 and 1

I have a 3D density plot that I was able to get to look okay with setting ColorFunctionScaling and OpacityFunctionScaling to ...
43 views

### Rescale color function of multiple plots

I have 5 ListDensityPlots that are using the same color function but the color bar runs over a different range in every plot. For example here are two of the 5 plots that I have I want these plots to ...
61 views

### How to plot the solutions of $f(z,a)=0$ for $z$ in the complex plane?

I have an equation $f(z,a)=0$ where $z$ is a complex variable $\frac {56}{10}<z<2\pi$ and $a$ is a real variable $0<a<\pi$. I want to plot solutions of this equation on the complex plane \$...
41 views

### Interpolating vertex colors with trilinear coordinates instead of barycentric

In 3D graphics, vertex attributes like vertex normals, texture coordinates, and vertex colors are interpolated over the surface of triangles using barycentric coordinates. In actual fact it's more ...
94 views

### RegionPlot and ColorFunction strangely inaccurate in Mathematica 12.3

Here is a simple example of a RegionPlot of a disk with a user-defined ColorFunction that is supposed to be rendered with high ...
52 views

...
83 views

### How can generation of interactive color bar be speeded up

I have been experimenting with interactive color bars to supplement graphical information presented as a colored ribbon. Here is an example: First, generate some colours as red/green/blue triples: <...
125 views

### Colouring components of ContourPlot

I am trying to use different colours to plot components of a ContourPlot in Mathematica. The contours are sufficiently complicated, such that I do not expect there ...
52 views

### How to plot solutions of a 3-variable equation, two variables normally, and the third one to change with colors? [duplicate]

I have this three variable equation $$4 \sinh (2 y) \cosh (z-x)+5 \sin (2 x-y)-6 x+y+3 \cosh (2 z)=0$$ where $$0<x<4\;,\qquad-3<y<0\;,\qquad0<z<2$$ I want to have a continuous plot (...
52 views

### Is it possible to plot a 3-variable function, two variables normally, and the third one to change with color?

I have a function like $$f(x,y,z)=4 \sinh (2 y) \cosh (z-x)+5 \sin (2 x-y)-6 x+y+3 \cosh (2 z)$$ where $$0<x<4\;,\qquad-3<y<0\;,\qquad0<z<2$$ I would like to have a plot of this ...
40 views

### Plot a line colored set by value of a different list

I have a model, see code below: ...
34 views

### Changing the color and thickness of smooth histograms of two sets curves on the same graph

I have a code (shown below) where I generate two different sets of data and plot the two sets as a smooth histogram on the same graph. The code works pretty well. What I'm having an issue with is ...
117 views

### Prevent rasterization of a simple Plot with a ColorFunction?

Whenever I output figures for academic research papers, I try as much as possible to prevent rasterization, which is one of my personal quirks, I guess. I have succeeded so far using Mathematica, but ...
67 views

### Extracting intensity from density plot image given color bar

I have an image showing a density plot from a paper, as well as the corresponding color bar. I am trying to convert this back to a 2D array of intensities. Here's what I did, which works but seems to ...
34 views

### The color changes at an interval of orders of magnitude in ArrayPlot

If I want to ArrayPlot with color changes at an interval of orders of magnitude, how could I do it? I have an array where some of the values are very small and some ...
85 views

### plot a list color data is set by another list

I have a list of 10 values. I'm trying to plot the list using ListLinePlot, and using color function set by another list. The code is: ...
79 views

### Create table with squares and cubes and colors, how to produce the desired effect?

This should be very simple but I do not get as I want, I have tried, with print, grid, matrix but it doesn't work. Is for my niece, is to create a table of squares and cubes with big bold letters size ...
165 views

### How to plot spherical harmonics using two primary colors?

I did go through Density plot on the surface of sphere where great examples are provided. What I am very much interested is in plotting spherical harmonics (real/imaginary or lets say just the assoc. ...