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

learn more… | top users | synonyms (2)

0
votes
0answers
26 views

rgb2ycbcr and ycbcr2rgb performing twice on same image gives different answers? [on hold]

I converted an image from rgb to ycbcr using rgb2ycbcr. Then converted back to rgb using ycbcr2rgb. Again converted the resulting image from rgb2ycbcr. But in the first and second rgb2ycbcr ...
20
votes
3answers
1k 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 ...
29
votes
3answers
669 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?
18
votes
3answers
603 views

How to plot an emission spectrum?

If I have a list of data with various wavelengths in nanometers, how would I plot them on a graph so it looks like this: So far I have managed to plot a spectrum in ...
15
votes
1answer
432 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 ...
0
votes
0answers
28 views

Color Gradient on points using ErrorListPlot

I am having some difficulties getting a value-dependent color gradient on points with ErrorListPlot. I am starting with a list looking like ...
31
votes
4answers
1k views

Is there an easy way to use Matteo Niccoli's perceptual color maps for 2D plots in Mathematica?

I have been using the ubiquitous Jet color palette for 2D plots for some time now, and don't really care for it. Then I came across the series of blog posts, The rainbow is dead...long live the ...
3
votes
2answers
72 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
104 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 ...
2
votes
1answer
72 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 ...
2
votes
1answer
223 views

Visualization of Gaussian Curvature

I need to visualize Gaussian Curvature of a parametric surface. There is a solution here: How to visualize the Gaussian curvature of a 3D surface? However, I'm not sure its working because when I ...
0
votes
0answers
34 views

Force the Automatic BarLegend in a ContourPlot to show from -0.65 to 0

I am using ContourPlot to display a function. I have forced the ColorFunction to map between -0.65 to 0 however the automatic BarLegend is still scaled dynamically and I also want to force the ...
2
votes
0answers
108 views

puzzled with ColorData

At first let me thank, from this point as well, those that they replied to my previous queries. From a reply I got, I obtained finally the desired graph. ...
5
votes
5answers
304 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: ...
10
votes
5answers
718 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
637 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
2k 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
66 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
62 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. ...
46
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, ...
4
votes
1answer
68 views

BarChart3D: varying individual bar color

I've been working with a chart like so: ...
14
votes
3answers
861 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
300 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
205 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 ...
1
vote
1answer
223 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
469 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
807 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
111 views

ShowSelection color

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
68 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
172 views

Color Blend in BezierCurve

How can I color a BezierCurve from Red into Green just as ...
3
votes
1answer
232 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 ...
17
votes
3answers
2k views

Mathematica color schemes for the colorblind

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

Are there more pre-existing ColorFunction options?

Such as "DarkRainbow", "Rainbow", "BlueGreenYellow", and ...
2
votes
2answers
68 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 ...
14
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 ...
2
votes
2answers
172 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 ...
14
votes
1answer
192 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: ...
1
vote
0answers
39 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
108 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
46 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
-2
votes
2answers
67 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
1k 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 ...
4
votes
1answer
133 views

The default ColorFunction of DensityPlot before v10?

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

Highlight selected points in a plot

I need to change color to selected points dynamically in my plot. ...
4
votes
2answers
161 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
252 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: ...