# Questions tagged [color]

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

1,252 questions
Filter by
Sorted by
Tagged with
230 views

### Shading region under (or over) a curve in horizontal bands

It seems like this should be simple, but I have spent most of the day trying to find a similar example on the web and there appears to be nothing remotely similar. Since I cannot find a way to make ...
1 vote
70 views

### How combine two DensityPlot3D in only one graph

I need to combine two DensityPlot3D in only one graph but the "Show" doesn't work for that. ...
233 views

### Color gradient to two sets of curves

Maybe it's a basic question but how can I achieve a gradient color style on the curves above the origin and a different style on the curves below the origin? I tried the following: ...
• 109
72 views

How to achieve smooth transition between the colors? As can be seen on the first image the color transition is not smooth. There is a narrow yellow line above yellow arrow and narrow cyan line above ...
• 16.2k
127 views

### Colors change in ReliefPlot with adding randomness

In the documentation of ColorData I found this esthetically beautiful image created by ReliefPlot. ...
• 16.2k
119 views

### How to accentuate subtly colored regions in DensityPlot

I'm having troubles in adjusting the colors shades/contrast/hue of the following typical plot: As you can see, there are two dark regions above and under the central part. I need to accentuate their ...
• 4,093
169 views

### How to improve this atomic orbitals manipulate box output?

I made this Manipulate box to show the atomic orbitals in the $(x, z)$ plane: ...
• 4,093
159 views

### How to get exact $\LaTeX$ colours in Mathematica?

In Latex, using the following code before \begin{document}, one can define different colours as in the shared images. ...
• 2,414
226 views

### Early computer art - reproducing Harold Cohen's turtle drawings

Harold Cohen Harold Cohen (1928 - 2016) was a British pioneer of computer-generated art. After his studies at the Slade School of Fine Arts in London he became soon well known in London as an abstract ...
• 69k
140 views

### How can I define a specific colour for the textures from the ExampleData?

Suppose I have the given Mathematica code, ...
• 2,233
217 views

### Colouring Bifurcation Diagram

I need to plot the bifurcation diagram for the function given below. g[x_, r_] := 6 x^2 + r x^4 + x^6 Plot[g[x, -4.9], {x, -2, 2}] Bifurcation Code for ...
• 2,414
165 views

### Coloring the line in ListLinePlot according to a rule

Mathematica noob here. So I have a list of values (lvalues) which are real numbers, some positive, some negative. I want to use ListLinePlot to plot them, but I want the line to become red when goes ...
156 views

### Contour Plot - L-Shaped

I am trying to plot a contour with an L-shaped form. I started by illustrating the contour function (horizontal, orange) and adding a line (vertical, black). ...
• 299
417 views

### Reproducing two of Victor Vasarely's colored cuboids (Eroed-Per and Gestalt-Bleu)

Victor Vasarely (1906 - 1997) was a Hungarian-French artist. He is, along with Bridget Riley, the best-known representative of Op Art (optical art). Based on the color experiments of the Bauhaus, he ...
• 69k
76 views

### How to set the same scaling for multiple density plots while using the ColorBar package or user-defined colorfunction?

I know questions with this theme have been asked before, and the one-line answer to them is- "Use ColorFunctionScaling -> False" But my specific ...
• 2,233
74 views

### Help making 4D heatmaps using ListSurfacePlot3D on a 4D {x,y,z,v} dataset

I am attempting to create a color heatmap using ListSurfacePlot3D with a dataset in the format {X, Y, Z, v}, where 'v' represents the color scale. The dataset is stored in a CSV file with four columns:...
162 views

### Manipulating color theme inside color function

I have the following code: ...
• 2,233
274 views

### Envelopment of space curves

In their answers to Creating sculptural forms The respondents showed how to envelop space curves with a net-like structure. I used kglr's answer to create the following function: ...
• 69k
1 vote
117 views

### Finding the dominant wavelength and excitation purity from ChromaticityPlot

I have a set of colors which I plot with ChromaticityPlot: ...
• 1,482
245 views

### Each Line in Different Colour after Reflection

The following code gives me a reflection pattern inside a circular billiard from time, $t=0$ to $t=10$. The figure below shows all the rays are in a single colour after reflection. However, I want ...
• 2,414
440 views

### How to create a specific lighting in 3D graphics for a disk?

I am trying to get a 3D disk with gradient lighting that is darker at the center and gradually goes white at the edges. I managed to get the correct lighting but could not make it a circular shape ...
• 4,674
467 views

### How can we color perforated polyhedra?

1. Color a polyhedron It is relatively easy to color a polyhedron using its polygon edge counts as color directive: Color according to edge count ...
• 69k
93 views

### Which ColorFunction was used for this ListDensityPlot?

I want to reproduce the plot below with ListDensityPlot, but I don't know which ColorFunction to choose. Can you help me figure ...
• 942
699 views

### How to obtain the names of a list of named colors?

I would like to obtain a framed table, within which the first row contains round color swatches, while the second row contains the corresponding color name. From the document, ...
• 645
234 views

### Color gradient to ticks in a plot

Simple question, but I did not find the answer anywhere: Is it possible to add a color gradient to the ticks in a plot? For example, imagine to have a density plot where some areas are very dark and ...
• 428
53 views

### Adding an empty circle to this plot, plus changing styles

I cannot find a god solution to highlight the intersection point between these two curves, in the plot I made: ...
• 961
3k views

### Digits of Pi in colored spiral

In How to make the digits of π go around in a spiral like this? it is described how to plot pi in a spiralform (in my case as binary number): ...
• 93
138 views

### Changing ColorTable on Existing Contour Plots

Context Recently, Bob Sandheinrich published a very useful code to change interactively colours of a given plot as follows: ...
• 22.9k
86 views

### Problems with RegionPlot and Legended

I have a RegionPlot that shows a couple of problems. The first one is that the region that borders the axes is overpassing them, there's a bit of the colour of the region outside the limit of the axes....
183 views

### Convert black and white pictures into color images

I have a digital image of an old black and white picture. Is it possible, using Mathematica, to convert this old picture into a black and white image? For example: This transformation was done using ...
• 2,835
37 views

### Density Plot Not Printing The Entire Range

I have a density function running on a piecewise function. When I plot the x range for full 0 to 1, the upper right corner color range doesn't print, but it works when I plot the x range for that ...
689 views

### How to produce an Itten color star?

Johannes Itten (1888 - 1967) was a Swiss painter and designer From 1919 to 1922, Itten taught at the Bauhaus School in Weimar, teaching his students the basics of materials, composition and color. ...
• 69k
171 views

### Modify the color scale in ColorFunction

I'm trying to get the following intensity map with the same style and colors But the closest I got was using SolarColors in Mathematica ...
• 117
61 views

### Creating a 3D Plot with Colored Lines from 2D Data Sets with Color Labels

I got the following table of my data:Amplitudes at each site for different t1-values and energy eigenvalues]1 and I am trying to plot the amplitudes at each site for every t1-value such that a 3Dplot ...
178 views

### Problem generating the heat map

I'm trying to generate the following heatmap (Figure 2, page 7 of this article) The equation I used for the heat map was ($R_{sh}$, equation 52 in the paper) ...
• 117
86 views

### Linear RGB to Stockman-Sharpe LMS conversion

I'm working on a psychophysical project that aims to emulate LMS cone responses accurately. My final goal is to transform linear RGB coordinates to physiologically relevant LMS responses (Stockman ...
• 1
76 views

### Trouble colorizing a table using grid command

I am trying to colorize rows in a table defined with the Grid command using ItemStyle. I have simplified my problem down to the following. Table["Blue",2] evaluates as the list, {Blue,Blue}. ...
• 435
1 vote
566 views

### Can colors be included in strings?

Colors are displayed in output like squares of the corresponding color. Say, if input is Blue, the output will be a blue square. I would like to use this in a ...
• 2,066
648 views

### Curvature of a Klein bottle

1. Problem statement An old answer of mine: Computing Gaussian curvature shows how to color parametric curves and surfaces according to their curvature. However, the methods used there will fail for ...
• 69k
219 views

### How to sort a list of colours and assign it to four categories?

I have a list of colours with RGB values like this : ...
• 105
522 views

### How to color specific faces of a polyhedron?

The following code helps me draw a polyhedron. I would like to color each triangular face in red and make the edges of the polyhedron thicker. I've looked at the post, but I'm still not sure how to ...
• 2,029
1 vote
80 views

### How to emulate the curves and color of the video? [closed]

I found this animation on the internet, it is part of a joke, but I was intrigued by how the video can be emulated with the colors and the curve proposed in the video.The video talks about neural ...
• 309
77 views

### How to change FeynArts Paint style settings?

I'm a Mathematica stylesheet enthusiast. I love using beautiful stylesheet instead of the default one, such as Dracular. I'm also a physics researcher on scattering amplitudes, which forces me to use ...
• 19
103 views

### Assign BoundaryStyle to more than one region in Region Plot using a theme

Consider the minimal example RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Then I can use ...
116 views

### Restrict the background colour in a ParametricPlot region

I am trying to plot this diagram, distinguished into three separate regions by the white curve. The code that I used for this purpose is provided below: ...
• 2,233
266 views

### Okhsl colour space

I am trying to recreate the Okhsl colour space from here. Below are the hue-saturation plots desired: I can create something similar (code adapted from here) with ...
• 8,678
44 views

### Heatmap resolution issues

I am trying to plot a heatmap from the following code. I have a problem where the colour seems to stop before reaching the corners. Please can someone help me to make the colour run all the way to the ...
• 105
73 views

### How could I customize ColorRules or ColorFunction in MatrixPlot?

Hello and have a nice day! I need to make MatrixPlot for some data. Here you can find a notebook with preprocessing raw data and some functions from below text. I want all "Inf" values to be ...
• 25
38 views

### How to include the default color for ArrayPlot ColorRules to the SwatchLegend?

...
• 53.3k
I would like to make a density plot of a function: $f=B(r^2+z^2)sin^2z$ for some range of parameter B. The color scale for each graph has a different value. For instance, for $B=5: f=600$ is white ...