Questions tagged [color]

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

Filter by
Sorted by
Tagged with
9 votes
2 answers
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 ...
user avatar
  • 1,453
0 votes
1 answer
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 ...
user avatar
2 votes
2 answers
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 ): ...
user avatar
  • 2,291
1 vote
0 answers
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: ...
user avatar
3 votes
1 answer
73 views

ListPlot with stacked Layout: Filling Color and Line Color

I have a Listplot like this: ...
user avatar
  • 669
2 votes
0 answers
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 "...
user avatar
  • 99
3 votes
1 answer
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 ...
user avatar
  • 83
1 vote
1 answer
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 ...
user avatar
0 votes
0 answers
44 views

Invert RandomColor[] command

I want to know which plot corresponds to which color upon executing the command below. ...
user avatar
8 votes
3 answers
281 views

Changing colors of ContourPlot

I have a problem with ContourPlot colors. In fact, i have the following table ...
user avatar
  • 81
2 votes
2 answers
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 ...
user avatar
  • 279
0 votes
0 answers
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, ...
user avatar
1 vote
1 answer
54 views

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

Consider the following Dataset: ...
user avatar
  • 4,677
3 votes
1 answer
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 ...
user avatar
  • 65
0 votes
1 answer
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? ...
user avatar
1 vote
2 answers
101 views

How to color curves in ListPlot3D according to external list?

I have a list of {x,y} generated as ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 15
0 votes
1 answer
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)\,$ ...
user avatar
  • 463
2 votes
1 answer
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 ...
user avatar
3 votes
3 answers
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 ...
user avatar
  • 143
3 votes
1 answer
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 27
0 votes
1 answer
45 views

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

I am using this code ...
user avatar
  • 463
0 votes
0 answers
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 ...
user avatar
2 votes
1 answer
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: ...
user avatar
6 votes
1 answer
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 ...
user avatar
  • 501
0 votes
0 answers
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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
4 votes
2 answers
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 1
5 votes
1 answer
167 views

How to control color bar min and max in StreamPlot

I have the following code ...
user avatar
  • 697
0 votes
2 answers
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 ...
user avatar
  • 383
0 votes
0 answers
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, ...
user avatar
4 votes
3 answers
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 ...
user avatar
  • 14.8k
1 vote
2 answers
58 views

Customizing bar in MatrixPlot

I'm triying to plot the following matrix: ...
user avatar
0 votes
0 answers
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 ...
user avatar
9 votes
2 answers
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 ...
user avatar
  • 145
5 votes
1 answer
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. ...
user avatar
  • 4,647
6 votes
1 answer
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.
user avatar
8 votes
3 answers
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 ...
user avatar
4 votes
1 answer
70 views

Remove part of TemperatureMap Color function

I am using here some random contour plot as an example. I have this ContourPlot: ...
user avatar
5 votes
3 answers
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 ...
user avatar
  • 755
1 vote
3 answers
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 ...
user avatar
  • 43
1 vote
1 answer
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)|...
user avatar
5 votes
0 answers
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 ...
user avatar
  • 113
1 vote
1 answer
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 ...
user avatar
  • 4,006
0 votes
0 answers
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....
user avatar
  • 941
4 votes
1 answer
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 ...
user avatar
  • 625
1 vote
0 answers
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 (...
user avatar
  • 7,759
5 votes
2 answers
178 views

Music animations

I've been tempted to use Mathematica to create some artistic musical animations. That is, if I have a music file, I want to be able to edit, for example, its waveform animation. For example, get ...
user avatar
  • 4,138

1
2 3 4 5
23