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

learn more… | top users | synonyms (2)

-1
votes
1answer
88 views

Is it possible to colour only one column of a matrix? [closed]

I was wondering if it's possible to colour a column or a row in a matrix. For example is it possible to add colour for one of the rows/columns of the following matrixform code? ...
0
votes
1answer
104 views

How to colorize a 3D image [closed]

I have a 3D image where the values are in {1/4, 2/4, 3/4, 4/4} and its size is {134, 134, 67}. I used Image3D to display it. However, I am wondering if there is a possibility to colorize the image by ...
6
votes
1answer
161 views

Is it possible to apply a ColorGradient to a string Style?

After reading through the language reference on Style, ColorSchemes, ColorData and ColorFunction, I am at a loss as how to make a string appear with gradient colors. And now that I am curious, I am ...
3
votes
1answer
147 views

default RGB coloring

I am playing with some basic genetic algorithms to recreate input images by transparent plane figures (similar like here:). Everything would work great but the speed is terrible. I was looking for a ...
1
vote
0answers
71 views

Ergonomic night time reading settings [duplicate]

I was wondering if Mathematica had a built-in ergonomically safe night time reading mode for the notebooks. I was thinking of setting something up myself but I do not know the ergonomics/eye safety ...
3
votes
2answers
106 views

ListPlot - Conditional Coloring of PlotPoints

...
4
votes
1answer
146 views

Render Graphics3D of anatomical data in color

I am trying to render a bone structure in color in Mathematica 10.3, but none of the obvious methods seem to work: ...
3
votes
1answer
86 views

DensityPlot with the same color scale in Show

I am trying to align color scale for continuous plots that have different ranges. Here the color scale exhibits a discontinuity even with the same PlotRange ...
2
votes
1answer
80 views

ColorDataFunctions applied to Tables of Graphics?

I'm trying to make a graphic according to a List, n. n has integer values that go from ...
1
vote
1answer
100 views

How to color-code a 3D point plot

I am doing a Finite Difference Method for 3D heat diffusion, so I need my ListPointPlot3D to be color coded on a range from deep red to deep blue depending on the temperature of the point. My ...
3
votes
2answers
139 views

Color vector according to angle

One can use the function VectorColorFunction in VectorPlot3d to color vectors according to their norms. How to color vectors ...
6
votes
3answers
192 views

ListPlot will not color markers in accordance with my color function

I have the following color table: colTable = {{Black}, Table[{Blend[{Blue, Green, Yellow, Red}, x]}, {x, 1/2000, 1, 1/2000}]}; colTable = Flatten[colTable]; ...
2
votes
1answer
45 views

Plot a function that gives a color [duplicate]

I have a function that takes in two numbers and returns a RGB color. I would like to plot that function on a 2D surface. How can I do that?
0
votes
0answers
22 views

How to get an image when having indices of pixels [duplicate]

I am doing a perspective projection of a list of voxel V={v1,v2,v3,...,vn} using the perspective projection matrix 3*4 to get the indices of each pixel pi=(xi,yi). pi=P*vi Once I get the indices, I ...
2
votes
2answers
78 views

mesh vertex coloring

So I created a mesh like this: mesh2 = ToElementMesh[FullRegion[2], {{1, 10}, {1, 10}}, MaxCellMeasure -> 1.]; and want to plot it, coloring the squares: ...
0
votes
0answers
42 views

ColorFunction on a surface [duplicate]

I have a surface in 3D space which is defined by equation in ContourPlot3D. For simplicity let me use x + y == z surface (in reality I have a transcendental ...
4
votes
2answers
431 views

About Hue's period

So we can see that Hue is a periodic function. Its period is 1. And the specifier from documentation. Sorry for I cannot cite my local language documentation. Let ...
6
votes
1answer
116 views

Plotting piecewise functions with distinct colors - issue found [duplicate]

I've been making use of the following thread: Plotting piecewise function with distinct colors in each section A handy feature I found there goes as follows: ...
1
vote
1answer
80 views

Color vectors according to a user-defined function

V[x_,z_]:=x/Sqrt[x^2+z^2]; Ex[x_,z_]=-D[V[x,z],x]; Ez[x_,z_]=-D[V[x,z],z]; The electric field components (Ex,Ez) are to be plotted as a vector field in the x-z ...
3
votes
1answer
126 views

How to pick a color differing significantly from the colors already in a given color list?

Suppose that we want to color a number of objects. We start by selecting some color (randomly). Then we want the color of the next object to be significantly different from the colors already used ...
1
vote
2answers
143 views

Use default ListDensityPlot color scheme in ArrayPlot?

I have some data that I would like to display in an ArrayPlot. I like the default color scheme of ListDensityPlot (Mathematica ...
1
vote
2answers
161 views

FillingStyle and Opacity won't work together in Mathematica

I try to plot some data in Mathematica using the ListLinePlot[]. Unfortunately the plot option ColorFunction, ...
3
votes
1answer
86 views

Creating a grid of coloured points

I wish to create a grid of 31x31 points with coordinates of the form $(k/30,n/30)$ within the unit square, and give each point a colour based on the 2-adic value of both its coördinates. I plan to ...
0
votes
0answers
40 views

How to create a color ListPlot [duplicate]

Assume that I've got a list L={{1, 2, 0.1}, {2, 4, 0.2}, {3, 5, 0.3}} I want to show this list like where first point (from the left side) has a additional ...
0
votes
0answers
22 views

How to adjust ColorFunction to scale the clipped areas in ListDensityPlot? [duplicate]

I have a data set I am trying to visualize, however some of the values seem to be extra large and it's just clipped and blanks are left. I want to rescale or whatever in such a way as this white areas ...
0
votes
2answers
73 views

ColorFunction still interferes with PlotLegends in Mathematica 10?

I want to draw 2 functions in the same plot and I use Show for this. I am using Mathematica 10 and I still have the problem that the legend disappears for the ...
2
votes
2answers
121 views

Using color gradients in Graphics3D

I would like to use the thermometer color gradient in Graphics3D. Taking an example, I have the following: ...
4
votes
1answer
176 views

DensityPlot: giving the same color to a range of values

The following command DensityPlot[x y, {x, -3, 3}, {y, -3, 3}, PlotLegends -> Automatic, ColorFunction -> {"Rainbow"}, PlotRange -> {{-3, 3}, {-3, 3}}] ...
18
votes
1answer
296 views

Color degrades when using Copy As Bitmap

I have discovered a problem that affects my use of Mathematica. When I use the menu command Edit > Copy As > Bitmap the colors in the copy are subtly degraded. To make this more apparent I copied ...
3
votes
2answers
128 views

how to use filling in Graphic plots

i'm going to plot some angles in Trigonometric circle by using Graphic command how can i use filling axes by different colors in this program or color between the angles? ...
1
vote
1answer
118 views

Can't get rid of vertical background color

I am trying to use GraphicsGrid, the background option is set to white, as well as for the separate graphs. But there are still grey stripes. What is the reason for ...
12
votes
3answers
244 views

Inverse of Interpreter[“Color”]: Convert a RGBColor to a natural language color name

What is the best way to create the inverse function of Interpreter["Color"]? That function takes a natural language color name like ...
5
votes
2answers
128 views

Modifying the built in graphic format of colors

Can users modify the default format of colors in the front end? Red For example, dimensions, aspect ratio, EdgeForm? The motivation is the functional ...
1
vote
1answer
101 views

Adding a fading color only to 3D curves going outside a cylinder

I'm having a problem with color shades on multi curves drawn with the Mathematica 7.0 code below. All the curves with both their endpoints inside the unit cylinder (green circle on the picture below) ...
1
vote
1answer
107 views

Adding a fading color to multiple lines in 3D

I would like to add a fading color to all the 3D lines I'm drawing with the code below, but I'm having difficulties with implementing the idea. The curves are starting on a unit sphere, and extend in ...
0
votes
1answer
90 views

Colors on a 3D curve not working

I'm having troubles applying colors to a simple 3D curve plot. Here's the code : ...
2
votes
1answer
92 views

ColorReplace does not work

I want to do - seemingly - simply image processing. I want to replace all blue pixels with white pixels. The obvious command would be: ...
3
votes
1answer
49 views

Change Property without re-evaluating [duplicate]

I am working with ContourPlot3D, and my expression takes a long time to evaluate (nearly 20 minutes). So I am wondering if there is a method to changing format ...
0
votes
1answer
92 views
3
votes
2answers
112 views

Coloring network edges by weight using GraphPlot

Following up on a previous question about how to color the nodes (vertices) of a network (graph) according to a color scaling of a property of those nodes, I'm now asking basically the same thing ...
6
votes
1answer
397 views

How to fill curves with a color gradient?

I would like to produce a graphic like this but with a continous color gradient between the outer curves. Is it possible to achieve this by using the Filling ...
6
votes
2answers
118 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 ...
4
votes
2answers
162 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 ...
16
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: ...
4
votes
3answers
192 views

How to produce a matrix plot from 3 matrices a, b and c following RGBColor[a[[i,j]],b[[i,j]],c[[i,j]]]?

I am trying to produce a single-plot from 3 matrices, let's say: ...
16
votes
1answer
519 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
110 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
224 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
86 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 ...
22
votes
3answers
1k 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 ...