# Questions tagged [color]

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

1,243 questions
Filter by
Sorted by
Tagged with
435 views

...
127 views

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

Suppose I have the given Mathematica code, ...
200 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 ...
153 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). ...
160 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 ...
382 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 ...
73 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 ...
923 views

### Union of plotted regions as sum of colors

I wish to plot 2 functions $f$ and $g$ so that the region bounded by $f$ has color $c_f$, the region bounded by $g$ has color $c_g$, and the region bounded by both has color $c_f+c_g$. E.g. $c_f$ is ...
209 views

### Applying a ColorFunction across the width of a line

I would like to apply a ColorFunction across the width of the line so that the line remains bright white at the center and fades to background color shortly ...
72 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:...
160 views

### Manipulating color theme inside color function

I have the following code: ...
267 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: ...
120 views

### ListPlot with Stacked Layout: Filling Color and Line Color

I have a Listplot like this: ...
1 vote
98 views

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

I have a set of colors which I plot with ChromaticityPlot: ...
243 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 ...
690 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, ...
91 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 ...
437 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 ...
461 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 ...
3k views

### How to get a list of built-in color names?

I find myself sometimes doing something like ListPlot[data, PlotStyle -> Violet], just to discover that Violet is not ...
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: ...
231 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 ...
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): ...
52 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: ...
1k views

### How to draw a polygon with hue color like this one (Koch snowflake)?

I know how to construct the Koch snowflake: ...
84 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....
649 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. ...
173 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 ...
36 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 ...
170 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 ...
57 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 ...
171 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) ...
80 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 ...
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}. ...
383 views

### Plot a one-dimensional list of numbers as a column/row of labeled colored squares

I have a list of numbers and a matching list of labels. I want to plot a column of colored squares, with the color of each square matching (in some color scale) the value of the corresponding number. ...
1 vote
564 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 ...
798 views

### Complex plot with imaginary part encoded in color

I want to plot the complex cosine in a 3D graphic where the real part is given by the surface, while the imaginary part is indicated by the color. Therefore, I tried the code: ...
639 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 ...
71 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 ...
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 : ...
517 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 ...
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 ...
1k views

### Separate coloring for each bar in a Stacked BarChart

In a stacked bar chart, how do I give individual stacks separate colorings? For example, how would I modify the following code ...
111 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: ...
102 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 ...
253 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 ...
69 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 ...
43 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 ...
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 ...