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

learn more… | top users | synonyms (2)

6
votes
2answers
111 views

RGBColor, ColorSlider and ColorSetter

A single RGBColor expression displays as a little square, showing the color. I just found that this little square is both a tooltip and a button. It seems to be new ...
19
votes
3answers
731 views

White balance correction with Mathematica

Does Mathematica include a function to correct the white balance of an image? ImageAdjust would seem to be the first go-to choice, but I haven't found a way to ...
4
votes
2answers
129 views

ColorFunction uses graphics coordinates instead of Plot3D coordinates

I've had the same effect in Mathematica 9 and 10. I'm trying to color a 3D Plot with another function, let's call it colorFun ( it should highlight the areas where the colorFun is above a certain ...
4
votes
2answers
319 views

Set the scale in ColorFunction [duplicate]

The following plot (A) ListLinePlot[{0,1,2,3},ColorFunction->"TemperatureMap"] goes from blue to read. The following plot (B) ...
3
votes
1answer
280 views

Visualization of Gaussian Curvature

I need to visualize Gaussian Curvature of a parametric surface. There is a solution in this math.SE post. However, I'm not sure its working because when I draw a sphere it's all white, but it should ...
15
votes
3answers
1k views

On coloring the faces of a surface differently with parameter-dependent colors

Old versions of Mathematica ($VersionNumber < 6) supported a particular syntax of ParametricPlot3D[] that allowed for ...
14
votes
3answers
2k views

How to sort colors properly?

I can't seem to be able to sort colors by their hue and perceptual brightness correctly. Here's my current solution, but it's not right; there are all these dark bands: ...
5
votes
2answers
525 views

How to extract RGB arguments as a list

Although the following lines of code work fine they are very awkward. My questions are below a = RGBColor[1, 0, 0] b = RGBColor[0, 1, 0] Is there a more compact ...
31
votes
3answers
826 views

A better “VisibleSpectrum” function?

Since ColorData["VisibleSpectrum"] is wrong, I would like to have a more accurate function to use. Can this information be extracted from Mathematica itself?
19
votes
3answers
2k views

Convert spectral distribution to RGB color

Presume I have a spectrum as a function of wavelength (an example being the blackbody spectrum): I want to convert that to a single RGB color to display on-screen, i.e. the "color" of that object ...
16
votes
1answer
514 views

Is ColorDistance symmetric?

Is the function ColorDistance symmetric, i.e. is it always true that ColorDistance[a,b] == ColorDistance[b,a], as use of the ...
3
votes
2answers
103 views

Permanently Changing Default Color

I can't find this answer elsewhere, but is there a way to permanently change the default plot color? In 10 the default plots are orangish and in 9 they were a purple-bluish color. Is there a way to ...
3
votes
2answers
189 views

Matrix Plot: How to Apply color function to only a region of the plot

I want to make a matrix plot where a color function is applied to a region of a matrix. Those matrix elements which were not in the region specified should not have any color associated with them, and ...
3
votes
1answer
82 views

Duotone plots with cyan and black

What's the typical way to make Mathematica plots use purely cyan and black? Maybe there's a fairly standard method, since publishers often require this? It also seems like some plot types take ...
5
votes
5answers
363 views

Plot all curves in a table with a single color

I want all of my solutions in a table to be the same color. My attempt: ...
11
votes
5answers
815 views

Randomly assigning color to Graphics3D objects?

I have a set of Graphics3D primitives (here, spheres) which I would like to assign either: One of a subset of colors, e.g. {Green, Red} A random color over some RGB interval Writing something ...
9
votes
4answers
662 views

Color change of area under a curve

I am trying to set a graph to show the value of the equity of an investment based on whether the portfolio is invested or in cash. I tried using the ColorFunction, ...
14
votes
4answers
3k views

How can I change the color of the bar in a ProgressIndicator?

I want to change the color of the progress bar in a ProgressIndicator. I want the progress bar to be red instead of green. For this purpose I wrote the following ...
1
vote
1answer
85 views

Cannot shade 3D vector in different color

I need to color each vector into different colors... but this formula just doesn't work: ...
2
votes
1answer
82 views

Show scatter plot of change in image saturation

Let's say I have two images. One is the original and the other is after some photo-manipulation has been applied to it. I want to show the effect on the color saturation using a scatter chart. ...
51
votes
3answers
2k views

Python-style plots in Mathematica

I love making plots in Mathematica. And I love to spend a lot of time making high-quality plots that maximize readability and aesthetics. For most cases, Mathematica can make very beautiful images, ...
5
votes
1answer
110 views

BarChart3D: varying individual bar color

I've been working with a chart like so: ...
14
votes
3answers
1k views

Change the inner color of markers

I would like to have a marker with white as its inner color, to be able to make this kind of graph: If I use PlotMarkers -> Style["\[FilledSquare]", White], ...
13
votes
1answer
365 views

How to do color-fill in images in Mathematica?

Color fill, the ability to apply a desired color to an enclosed area, is one of the basic functions provided by most graphic applications. Is there a similar ...
3
votes
1answer
381 views

Want a different color for each curve displayed with Show

I want a different color for each curve that I am displaying with Show. The functions are: custom1 custom2 custom3 custom4 custom5, and I am using the following ...
2
votes
1answer
281 views

Subset of edges with a different color

I want to color a subset of the edges of my graph with a different color. My graph currently has a large number of edges, so the following is just a toy example ...
3
votes
1answer
645 views

Create a colorbar plot legend

I have the following list of parametric equations lst = {10*Cos[u]*Sin[v], 3*Sin[u]*Sin[v], 2*Cos[v]}; I define the following color function ...
4
votes
4answers
946 views

How to change color dynamically?

I am new to Mathematica and want to change the FillingStyle Dynamically in this Plot. I want ...
6
votes
0answers
127 views

ShowSelection color [closed]

The color of a selection is controlled by the operating system. E.g., enter the following code in separate cells. ...
22
votes
5answers
1k views

Morphing Graphics, color and location

I would like to make a small animation : 1-We start with a random distribution of gray points : ...
6
votes
1answer
83 views

Graph: Coloring Edges individually

CODE: Graph[{Style[0 -> 1, Red], Style[0 -> 1, {Blue, Dashed}]}] This mathematica code will make both lines solid Red, since they belong to the same two ...
14
votes
2answers
184 views

Color Blend in BezierCurve

How can I color a BezierCurve from Red into Green just as ...
3
votes
1answer
269 views

Filling using colors rendered corresponding to the difference between two curves

Suppose there are two curves f1[x] and f2[x], and we want to fill the area between them using colors corresponding to the vaule ...
19
votes
3answers
2k views

Mathematica color schemes for the colorblind

Does Mathematica have a graphics option that makes plots intelligible for people with colorblindness?
5
votes
1answer
211 views

Are there more pre-existing ColorFunction options?

Such as "DarkRainbow", "Rainbow", "BlueGreenYellow", and ...
2
votes
2answers
84 views

Export Text with Colors

Is there a way of using Export[] method to take a text with colors (using Style) and then export to file, such that when I open ...
2
votes
2answers
223 views

Gradient in a plotstyle

I'm trying to replicate the figure below. Now a nice first approach to do this is by using Mathematica, by making some kind of contourplot with circles and just add a gradient to the contourstyle. Now ...
15
votes
1answer
205 views

Major slowdown when using a ColorFunction with more than one named scheme

Problem remains in 10.1 Earlier Kuba noted a major slowdown with code Simon Woods posted. Here is a simplified example. First a color function using two different named gradient schemes: ...
2
votes
0answers
88 views

ImageData to Image to ImageData, in LABColor [closed]

Given an $m\times n$ image $G1$, I'm trying to: Extract the $mn$ pixels of $G1$ as an $n\times m$ matrix $M1$ of triples, where each triple represents the color in LAB space. Turn $M1$ into an ...
2
votes
1answer
138 views

Coloring points via “TemperatureMap” [duplicate]

I have a collection of 3D points, and each is associated with a real number in [0,1]. A typical element looks like {{x,y,z},c} where ...
0
votes
1answer
64 views

Adding circles on a function plot depending on the slope

I have the following function and I use manipulate to change the plot of the function and the integral respectively. In nonlinear dynamics one plots a little circle/point on the intersections of the ...
10
votes
3answers
1k views
-3
votes
2answers
146 views

Vary the color of a 2D scatter plot [duplicate]

This is what I want. I want to change the colors as I progress through a list.
14
votes
4answers
2k views

How to change element color in Periodic Table?

The command ColorData["Atoms", "Panel"] generates a periodic table. As I don't want to reinvent the wheel, I asked myself how to change the color of each cell ...
5
votes
1answer
228 views

The default ColorFunction of DensityPlot before v10?

The default ColorFunction of Plot, Plot3D before v10 is respectively mentioned here and ...
8
votes
1answer
191 views

Highlight selected points in a plot

I need to change color to selected points dynamically in my plot. ...
4
votes
2answers
216 views

Overlapping Spheres with a Shared Blank Region

We have two similar overlapped spheres in a way that the distance between their centers is smaller than the sum of their radius (2R>a). As I show here: Also, we want to draw them in a such way that ...
12
votes
3answers
291 views

Is there any faster implementation of DominantColors?

The function DominantColors is a simple function but runs incredibly slow when the number n of dominant colors to find is large - it is currently the biggest bottleneck in my code: ...