# Questions tagged [color]

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

1,138 questions
Filter by
Sorted by
Tagged with
263 views

### Using circles with various radii and colors in ListPlot

I have a big list that I'd want to plot using 'Listplot.' I replaced it with list = Table[{x, -10 + Abs@(x^2)}, {x, -3, 3, 0.3}] I wish to have a plot as the below ...
• 1,453
50 views

### How can I outline my figures?

I am currently producing some figures, all using the same colours. This, however makes them impossible to distingis from one another. This is my code ...
• 115
57 views

### When colouring a plot with ColorFunction, the plot exports with low image resolution

I have coloured a parametric plot with using ColorFunction, which looks fine in Mathematica (I'm on M13 ): ...
• 2,291
1 vote
49 views

### Coloring my Financial Indicator

I want to plot a trading chart with my indicator that is colored depending on its height. I prepared financial data and data of my indicator: ...
73 views

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

I have a Listplot like this: ...
• 669
34 views

### Filling with White Color

I am trying to fill multiple curves with different colors. For the purpose I have, I need to exclude some regions from shading. After searching, I realized that I can fill those regions with "...
• 99
59 views

### How to adapt or mimic the AbsArgPlot default ColorFunction

I like the way AbsArgPlot uses a default ColorFunction that cycles through the hues with much less variation in perceived ...
• 83
1 vote
64 views

### Color each curve with its proability to appear

I have a function f(x) which is dependent on a random parameter a. I can define a matrix Y containing {x,f(x),P}, where P is the probability that the curve appears. I would like to plot these curves ...
44 views

### Invert RandomColor[] command

I want to know which plot corresponds to which color upon executing the command below. ...
• 1,398
281 views

### Changing colors of ContourPlot

I have a problem with ContourPlot colors. In fact, i have the following table ...
• 81
257 views

### How to use both solid and dashed line in a single curve

I want to edit this code from the wolfram Documentation Center so that, the red curve comes as dashed lines and the black comes in solid. How to do that using ColorFunction? Colour a curve red when ...
• 279
57 views

### Using ColorData to obtain four colors

I would like to reproduce the plot shown in fig(b) from the link. How can I obtain yellow, red, green and blue using the command? Let's say there are 4 roots in total. In this case roots will be {2, ...
1 vote
54 views

### How can I use different colours for different groups of points in a ListPlot?

Consider the following Dataset: ...
• 4,677
65 views

### Changing the line width in the Legends

I have changed the width of the plots in my code but whenever I save it as a pdf file, it appears that the legend specifying each plot has a thin width as compared to the lines in the plot. Following ...
• 65
27 views

### Discrete Plot Custom Color Individual Point Coloring

How do I individually color each points in the Discrete Plot in order to make it similar like the one that I use in the Legend? ...
• 113
1 vote
101 views

### How to color curves in ListPlot3D according to external list?

I have a list of {x,y} generated as ...
• 2,977
47 views

### Rescaling plotting data for colordata from 1 to 0

Hi I would like to use ColorData function for coloring a 2D-scatter data plot using the third column of the data set. I am using ...
• 15
42 views

### How to combine Filling with Manipulate in the given code to illustrate the total area that the lines cover?

I have three functions $f(x,y)\,,g(x,y,z)\,,h(x,y,z)\,$ ...
• 463
106 views

### Color bar depending on a parameter

I'm trying to reproduce a figure like the following: I had the analytical expression for each curve, and the color bar indicates the value of some parameter. My problem is that I don't figure out how ...
141 views

### Coloring some prescribed points in a 2D Graphic

I am doing some graphic of roots of the polynomial $f(x)=x^{18}-50x^5-1$. The roots are represented in the complex plane as in figure below: To do that, I used the command ...
• 143
117 views

### Convert list of LABColors to list of RGBColors

I have a list of LABColors: {{l1,a1,b1},{l2,a2,b2}..{ln,an,bn}} I want to convert it to a list of RGBColors of same form: {{r1,g1,b1}, {r2,g2,b2}, .. {rn,gn,bn}} I have been trying for a few hours but ...
47 views

### parametricplot/revolutionplot3d color by a function

I want to draw a ParametricPlot and/or a RevolutionPlot3D of functions {X[s],Z[s]} extracted from NDSolve, of which color is determined by a function ...
• 27
45 views

### How to change the colors of legends markers in the given code?

I am using this code ...
• 463
19 views

### Individual Coloring of a List of Plots [duplicate]

How do I give different colors to a plot of a table variable? It seems that the PlotStyle Function doesn't work on a table variable. How do I create a custom color function that I can use on a ...
• 113
84 views

### How to apply color function to my financial indicator?

My goal is to make a figure like this picture in a financial indicator, I want to plot “a colored” financial indicator below a trading chart. I prepared financial data and data of my indicator: ...
88 views

### Why does specifying a ColorFunction make figures non-vectorial?

If I save the figure generated by ListPlot[{{1, 1}, {2, 2}, {3, 3}, {4, 4}}] as a PDF and open it in Affinity Designer (an alternative to Adobe Illustrator), the ...
• 501
41 views

### How do I color each individual curves differently inside a single plot using a custom color function?

The code used to work when I had manually created the variables instead of using a Do Loop to automatically generate variables. I've used both PlotStyle and ColorFunction but none of them works. This ...
• 113
60 views

### Oscillating Colors in ParametricPlot

I am trying to draw some curves with colors oscillating between red and blue (as a function of arc length along the curve). To make things easier, I am using circle arcs so that the curves are easily ...
222 views

### Modify the range of the color function in a StreamPlot, and add the corresponding ColorBar in the legend

Hello I'm trying to manually clip the scale of the colors for the streamlines in StreamPlot. The problem is that at the origin the velocity goes to infinity and that throws off any attempt to ...
• 53
51 views

### SphericalPlot the first two column as theta phi, and the third one as color from a n*3 matrix

I'm very new to Mathematica. I'm trying to spherical plot a sphere from an n-row, 3-column matrix. The radius is a constant, the first and second columns are theta and phi of the points, and the last ...
• 1
167 views

### How to control color bar min and max in StreamPlot

I have the following code ...
• 697
88 views

### Plotting a data set

I have data set like this (x , y , n) n is the number from 0 to 12 I want to plot this data set but I want to the color of each point be base on the third column. For example if I have 0 in third ...
• 383
33 views

### Seeking low level code to change the background color of ActionMenu menuitems

Currently, v13, the background color of the menuitems used in an ActionMenu are grey. Can the background be changed with some undocumented feature? This is for GUI reasons for visually impaired folks, ...
135 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 ...
• 14.8k
1 vote
58 views

### Customizing bar in MatrixPlot

I'm triying to plot the following matrix: ...
30 views

### Assigning colors of a table of functions [duplicate]

I have a little problem. I define: f[x_,y_]=x^2_y^2 and g[x_,y_]=x^4+y^4 Then I had create a sequence ...
256 views

### Replicating $\LaTeX$'s pgfplot Style in Mathematica

I'm trying to replicate the plot theme of $\LaTeX$'s pgtplots for 3D surfaces in Mathematica's Plot3D Function. The goal is to create something similar to this: So I played around with the opacity ...
• 145
125 views

### Sorting colors in the plotstyle versus the grade of details [closed]

We have multi plots in a figure that are shown individually with specific colors. ...
• 4,647
156 views

### Reversing a colormap produced by Blend

Is there a way to reverse a colormap that is produced by the command Blend? In particular I wanted to reverse the parula colormap given in this link.
559 views

### Automatically Color a map

In this video, she mentions that these patterns are 2-colorable (or at least conjectures that) I want to make a knitting pattern out of these, and while I have managed to figure out the lines defining ...
70 views

### Remove part of TemperatureMap Color function

I am using here some random contour plot as an example. I have this ContourPlot: ...
192 views

### How to manipulate the colours when joining points in ListPlot

Suppose I plot out two sets of data on the same graph as follows: ListPlot[{{{1, 1}, {2, 2}, {4, 4}}, {{3, 3}, {5, 5}, {6, 6}}}] The colours of the points change ...
• 755
1 vote
130 views

### Color a 3D line plot of list of lists

Assume a list of lists of length n of the kind: t = {{x1, y1, z1, p1},{x2, y2, z2, p2},...,{xn, yn, zn, pn}}. I'd like to make a ...
• 43
1 vote
77 views

### ColourFunction with fixed colour in range

After quite a lot of searching, I cannot seem to find an answer to my query, so I thought I would ask. I am creating a contour plot of some function of two variables, $f(x,y)$, that is small (\$|f(x,y)|...
89 views

### MoleculePlot is completely unfunctional when DefaultStyleDefinitions sets to ReverseColor.nb [duplicate]

If you set the DefaultStyleDefinitions sets to ReverseColor.nb then when you try to execute the example from the MoleculePlot document, your MoleculePlot will have blank result like even if you ...
• 113
1 vote
104 views

### How to color ListLinePlot with PlotRange constraint?

I would like to plot=ListLinePlot[...] a few lines and color them with some external data set. This can be done with a small trick ...
• 4,006
37 views

### Adding a legend to a ColorFunction Line

I have a plot with a color-varying line, and am looking to make a color-varying LineLegend to accompany it. However, ColorFunction doesn't work for legends it seems, so I'm not sure how to manage this....
• 941
130 views

### Cutting a Color Scheme

I am trying to do a DiscretePlot3D with something similar like "TemperatureMap" Color Scheme, where, however, the white color should correspond to ca. 1/3 of the maximum value. Based on the ...
• 625
1 vote
125 views

### Separate colours of an image

Since LAB colour space is based on opponent color theory, an image in 'LABColor' is made up of red/green, yellow blue separations. I am trying to separate an image into its distinct colour components (...
• 7,759