Questions tagged [color]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
38 views

How can I give different colors to each ListLinePlot combined with Show[]

I tried to assign different colors for each ListLinePlot combined with Show, but none of the things I tried with ...
0
votes
0answers
28 views

How can I make plasma colorfunction for my density plot [duplicate]

I want to create a density plot in mathemtica and I want to use "Plasma" colormap which is given here (like Yellow corresponds to 0 and Purple corresponds to 1) https://image.slidesharecdn.com/...
2
votes
1answer
38 views

ColorFunction-> Distance to specific Point (Mean)

Good Day to you, I am trying to plot points in a ListPlot/ListPointPlot3D with a ColorFunktion representing the distance to a given point (in my case the Mean point of the data). I have tried this, ...
4
votes
3answers
220 views

Separate the luminance from the chrominance in an image

My goal is to separate a full-color image into its luminance and chrominance ("color") components and display them as two images: 1) a black and white image (for the luminance) and 2) a color image (...
1
vote
0answers
25 views

What is the default Color Gradient used by ContourPlot? [duplicate]

What ColorFunction does ContourPlot use by default --- that is, what does "Automatic" mean as the value for that option? The "Density and Contour Plots" tutorial says: By default, the color ...
3
votes
2answers
94 views

How can I change the label background color in TabView?

When I go to the web page, https://reference.wolfram.com/language/ref/TabView.html, giving the description of TabView, the example displays as follows: Note that the background for the label is blue. ...
2
votes
1answer
62 views

Colouring cells in a Voronoi mesh [closed]

Consider the following code ...
5
votes
2answers
205 views

Adding a bar legend to a 3D plot indicating surface curvature by color

I want to color surfaces according to its Gaussian curvature, but the color bar is not consistent with the color. How can I improve it? Color a HyperbolicParaboloid according to its Gaussian ...
7
votes
2answers
127 views

How to change colour of TogglerBar

Consider the following code ...
2
votes
0answers
24 views

Preserving ColorFunction when exporting 3D density plot? [closed]

I am trying to produce a 3D density plot from a set of points. Minimal code to generate a similar set of points and plot is ...
2
votes
1answer
48 views

How to create a multicolored string? [duplicate]

I'm interested in displaying a string composed from sub-strings of different colors. Mathematica allows one to create a list comprising sub-strings of different colors, for example ...
1
vote
0answers
33 views

How to map 2D coordinates to a unique colour (i.e. 2D colormap)?

Colourmaps in Mathematica usually map a single value with a colour. Are there 2-dimensional colourmaps available where one can map 2d coordinates to a unique colour? (i.e. in a way that coordinates ...
1
vote
0answers
44 views

Vector Color function usage

Can anyone explain why there is a difference between following plots: ...
1
vote
1answer
58 views

How to merge a polar plot, histogram and density colour values?

I am trying to get direction data into an histogram a circular one. Something like this: ...
3
votes
2answers
129 views

Different colours for different sectors of piecewise function

I have some lines of code that generate numerical solutions to equations. Then I want to combine two of these in a piecewise function. The way I did it is the following -lf1[r] and lf4[r] are the ...
5
votes
0answers
94 views

plot and sum colors of the common region in hyper-graph?

For the two complex weighted hypergraphs {$G_{1}: w1$ for edge $(d_{1},d_{2})$; $G_{1}: w2$ for edge ($d_{1},d_{3}$) } sharing one vertex $d_{1}$, I use different color for the complex angle and ...
0
votes
0answers
22 views

How to set the font size and back ground colour of the editor in Mathematica permanently [duplicate]

Every time when I choose a new untitled notebook I have to manually go to format and set size, background color and face of the text. How to make these changes permanently so that whenever I open a ...
3
votes
1answer
42 views

Why do ColorSeparate and ColorConvert give slightly different output?

Consider the following test code: ...
6
votes
2answers
356 views

How does one splice together parts of two 3D density plots, without changing the original colors?

How does one splice together the t=0 to 59 part of the first plot with the t=59 to 60 part of the second plot, without changing the original colors of either plot? I have spent hours looking for an ...
4
votes
3answers
249 views

How can I get a “RedLevel” instead of GrayLevel when drawing a densityplot?

I was trying different colorfunctions, but don't get the RedLevel like the picture as follow: My picture is like this, a greylevel one.
4
votes
1answer
78 views

BarChart and ColorFunction

There are really two questions. The first is: how does one get BarChart to generate x coordinates. That is, ListPlot takes a list of pairs, but ...
8
votes
1answer
189 views

ColorFunction doesn't work with custom PlotMarkers

Bug introduced in 10.3.0 and persisting through 12.0 or later This works: ...
1
vote
1answer
45 views

Different colors for each curve in a Plot[Table[],{}] [duplicate]

I'd like to plot a few curves in a plot but with different colors, like in this code : ...
4
votes
2answers
91 views

How to create a `BarChart[]` with color rules determined from categorical data?

Let's say I have a list of color names (strings), like this: samples = {{"blue, red, red"}, {"purple, blue, purple"}, {"blue, blue"}}; Then I can plot the ...
5
votes
1answer
146 views

Canceling a color specification

I can get the default colors for one figure (Cuboid), and then color another figure (Sphere), as here: Graphics3D[ {Cuboid[], Red, Sphere[]} ] However, if I ...
2
votes
2answers
108 views

How to plot a function for three variables in 2D plot?

I have a function and want to re-draw its plot for its three variables. Here is my function: Where X is: The plot of this function is: I'm thinking to draw a beautiful plot something like this: I ...
2
votes
1answer
42 views

How to get the same color for the boundary and the shading in ListContourPlot?

If I specify the ContourShading to be the same color as the Contour they end up being a different color, see the example below. ...
1
vote
0answers
42 views

Match light-shaded colors to plot themes for RegionPlot

I have a problem very similar to the one in the following topic: Match colors to plot themes. I want to extract the color of a plot for the corresponding legend. However, as I use a RegionPlot I am ...
3
votes
1answer
82 views

How to rescale the colorfunction?

I have a data file which has 3 columns (let's call them x, y, p). Here x and y columns represent the co-ordinates in the 2-d plane while the third column p represent the probability of an event ...
2
votes
1answer
34 views

How can we change the Highlighted elements to a specific color?

edit I don't want highlighting, only font color. Sorry. I want the Highlighted elements to be Blue Font. I can't understand this suggested previous post. When I ...
3
votes
1answer
39 views

Can I get a list of RGB colors from a graphics object?

I'm wondering if it is possible to get the list of RGBColor from a plot. What I mean is simple. Suppose I plot list L with "TemperatureMap": ...
2
votes
1answer
30 views

ColorFunction for LogPlot (and its cousins)

I have a ColorFunction that I use to color a Plot, with the option ...
1
vote
1answer
35 views

BarLegend for custom colour function

How do I change this code so the desired BarLegend is displayed? ...
3
votes
1answer
54 views

Is it possible to plot a function's value along a curve using different color?

I have a curve in 3D space which is green curve in the following picutre The code for generating the curve is as follows: ...
5
votes
1answer
133 views

Transforming 2D points on to a regular grid or lattice

I have a set of points in 2D generated by doing a DimensionReduce on a list of colors: ...
1
vote
2answers
69 views

Provide a list of colours for the points of ListPlot

I want to colour the points in a ListPlot with a list of colours, i.e. something like ...
4
votes
3answers
102 views

ColorFunction based on array index in ListLinePlot

ColorFunction specifies that for ListLinePlot it takes the $x,y$ data as inputs. I, however, would like to take the array index (...
0
votes
1answer
54 views

Are there better ways to plot a continuous scalar function of three variables?

I am plotting a continuous scalar function of three variables with this code: ...
0
votes
1answer
69 views

Change a formula [closed]

have a program consisting of a database of colors in L-a-b format. I want a formula to obtain the desired color by mixing different amounts of colors that are in the database. For example: I want ...
2
votes
1answer
35 views

How to match value coloring in Plot3d to value coloring of legend

In a Plot3D I want to change the displayed value range, see the following example. The function generates the values {-1,1}, they are displayed correctly on the z-axis within {-2, 2}, but the color ...
1
vote
1answer
45 views

Filling a region in a plot changes color in legend [closed]

I'd like to mark a region in my plot and after some research in the internet I found the solution I was looking for using the Filling option. ...
5
votes
3answers
235 views

Color the polygons in PolyhedronData

What is the simplest method for coloring each polygon face of a polyhedron with a specified color? For instance suppose I have a list of $12$ colors (...
0
votes
0answers
46 views

PlotLegend Colors Missing

I want a PlotLegend with the colors of the graphics. p4 = Plot[y1[t] /. s1, {t, 0, tmax}, PlotRange -> All, PlotStyle -> {{Gray}}, PlotLegends -> "Y1"]; ...
2
votes
2answers
71 views

How can I plot a matrix with a two-dimensional color scheme?

Plotting a matrix with colors depending on the value of each entry is straightforward, ...
4
votes
1answer
67 views

Scaling contour plot colors over several orders of magnitude

I have this contour plot that has values ranging from ~0.01 to ~100, however, there aren't distinct colors between every order of magnitude. I've tried putting a Log scale on the ...
1
vote
1answer
32 views

Plot: line colors when using assumptions

I want to vary a parameter via assumptions in a simple line plot and assign a different line color to each parameter value. Unfortunately all lines are the same color. I also tried to use Evaluate[], ...
0
votes
0answers
21 views

Color of line in ParametricPlot according to indepedent variable

I solve a set of pdes numerically using NDSolve: ...
3
votes
2answers
145 views

Plotting maxima within a simplex

I am trying to draw a particular maximum plot within a simplex. I have functions based on two variables: Write p,q for the two variables where p,q \geq 0 and p + q \leq 1. This defines the simplex ...
7
votes
4answers
189 views

Construct, in some manner, a four-dimensional “RegionPlot”

Let me abuse some Mathematica notation and formulate the following "command": ...
5
votes
1answer
127 views

Customize ColorData function

I am trying to customize the color data ColorData["AvocadoColors"] I want to make color data function of the gradient starting from the green to the white ...