Questions tagged [color]
Questions on the color models, schemes, named colors and color functions supported by Mathematica.
1,227
questions
0
votes
1
answer
50
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:
...
9
votes
5
answers
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):
...
3
votes
2
answers
111
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:
...
0
votes
1
answer
79
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....
3
votes
1
answer
153
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 ...
0
votes
0
answers
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 ...
13
votes
2
answers
583
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. ...
4
votes
2
answers
166
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
...
0
votes
0
answers
50
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 ...
0
votes
0
answers
161
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)
...
0
votes
0
answers
44
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 ...
0
votes
1
answer
70
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}. ...
1
vote
3
answers
562
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 ...
7
votes
3
answers
594
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 ...
3
votes
2
answers
215
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 :
...
7
votes
5
answers
499
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
0
answers
79
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 ...
0
votes
1
answer
57
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 ...
4
votes
1
answer
96
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
...
2
votes
2
answers
78
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:
...
4
votes
1
answer
227
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
...
2
votes
1
answer
35
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 ...
0
votes
1
answer
63
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 ...
3
votes
1
answer
33
views
3
votes
2
answers
141
views
How to make the same color scale range for all plots?
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 ...
6
votes
2
answers
258
views
How to fill with color the space between plotted points?
In this program I am rotating a rhombus about the origin, in a normed non-Euclidean flat metric space :
$ ||x||_n =(|x_1| {}^n+|x_2| {}^n){}^{1/n} $ , with $ n=\frac{1}{3} $
The rotation preserves ...
3
votes
3
answers
111
views
How to access the index of a list for the colorfunction of a listplot?
From the documentation of ListPlot,
ListPlot[Table[Style[{Cos[t], Sin[2 t]}, Hue[t/(2 Pi)]], {t, 0, 2
Pi, Pi/20}],PlotStyle -> PointSize[Medium]]
Varies the ...
4
votes
3
answers
286
views
I want to plot the solution with different values of S, How is it?
I was solving an ordinary non-linear differential equation of the fourth order in the picture attached
to the following code:
...
2
votes
1
answer
77
views
How to change the plot style of several curves, in this manipulate box?
I'm sure this is very easy, but I'm currently unable to make it to work properly. I just need to give different colors and style to the three curves shown in this manipulate box:
...
0
votes
0
answers
68
views
Smooth color gradient with ColorFunction (pdf export)
I wanted to plot a 2d curve (a function of the variable $k$) whose color intensity should be given by another function of $k$. This is the code:
...
7
votes
3
answers
254
views
Makes AxesStyles multiple colors
I'm aware you can change the axis of a Plot to be one color with AxesStyles, but how do I make it so one axis is more than one color?
Specifically, I would like to make both axes of a 2D plot the ...
1
vote
1
answer
88
views
How to color the vertices of a graph so no adjacent vertices have the same color?
How can I color the vertices of a graph so that no pair of adjacent vertices share the same color? The function FindVertexColoring can be used for this.
4
votes
3
answers
185
views
How to standardize the color-coding of several 3D and contour plots
I am building a series of images containing of pairs {ListPlot3D, ListContourPlot}. Each pair I build of the same data. Different pairs are built using different lists. Each list consists of triples ...
0
votes
0
answers
57
views
Plot Color Discontinuous with Legend
Im working on a project that simulates the temperature distribution within a material. Right now I have multiple plots using the ColorFunction -> "TemperatureMap" and a legend on the side....
1
vote
0
answers
37
views
Coloring a ParametricPlot3D with a custom color function [closed]
I am plotting a trajectory $\left(x(t),y(t),z(t)\right)$ as a ParametricPlot3D and want to assign the value of another function $C(x,y,z)$ as the color this parametric plot at point $\left(x,y,z\right)...
4
votes
5
answers
292
views
6
votes
2
answers
905
views
How do I get such colorful plots with bar legends colored like this?
Each line in this plot is for the same equation with different values of a parameter $\beta$; the range of $\beta$ is shown in the lines plotted and the bar legend. I want to know how to create such ...
1
vote
0
answers
40
views
Getting hue correct in a complex argument plot [duplicate]
I'm trying to generate a picture of the phase of a complex function defined on a rectangle. I'm using Hue (which is cyclic) and DensityPlot, but it's leaving out certain "corners" of the ...
0
votes
0
answers
58
views
How to export the data of a contour plot from Wolfram Mathematica?
I want to export the data of a contour plot that I made in Mathematica to graph it in another program. But when export the .dat, in which I want 3 columns to make the contour plot, it exports more ...
2
votes
0
answers
40
views
Coloring Vector if it points at (0,0,0) or (1,1,1)
I'm trying to plot a 3D vector field on a cubic space between [0,1]. I wanted to color the vectors based on their direction, where if they point towards (0,0,0) or the closer corners (1,0,0), (0,1,0), ...
1
vote
1
answer
66
views
BarLegend inconsistent with DensityPlot colors
In this post, 2D transient heat equation solution, @Alex Trounev helped me, in setting up a 2D simulation of a heat transfer problem where multiple materials are involved. The code is here:
...
3
votes
2
answers
103
views
Customizing BarLegend for Missing[ ] data
My apologies if something similar has been asked, I could not find a question on the same issue. I have created the following colour map (heat map) using a toy sample with ...
1
vote
0
answers
63
views
Calculating luminance in $\rm{cd/m^2}$
Let's say I have an image of the following transparent material through which light is passing,
I want to calculate the luminance in units of $\rm{cd/m^2}$.
What I did is
...
1
vote
1
answer
162
views
Colored plot with Wolfram Mathematica
I saw this image thus I guess that it is possible to color some regions in a plot. What kind of command can I use to have a similar plot?
1
vote
2
answers
80
views
Color coding a parametric plot based on given conditions
This question is based on the answers provided here and here. Basically, I have the following Mathematica code to calculate the Lyapunov exponents as a function of Temperature:
...
5
votes
3
answers
542
views
Fill rainbow along vertical axis
Plot[x^2, {x, -2, 2}, Filling -> {1 -> Top},
FillingStyle -> Automatic,
ColorFunction -> {Function[{x, y}, ColorData["Rainbow"][4 y]]}]
...
0
votes
0
answers
32
views
DensityPlot with 4 region. Help please!
How to write a function in Wolfram Mathematica that returns the values 0,1,2,3 in random order and draw a diagram for it as shown in the picture using the DensityPlot function. Help please!!
1
vote
2
answers
54
views
ColorFunction for StreamPlot
I would like to color all lines witch have a positive vertical component in red and the other in blue. How can I do that?
...
0
votes
0
answers
67
views
how to get this view in math,(always appear like this)
How do I make math look like this forever?
1
vote
1
answer
168
views
Normalizing the Range for the Color Scheme and Legend of Contour Plots
I have the below codes to create contour two plots that I then merge together to show at the same time. They are from mesh maps of above and below a dam so i cannot make the contour plots together or ...