Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
22 views

Coloring a 2D plot w.r.t a given array [duplicate]

I have three arrays of same size. The first two are the x and y values respectively that I need plot as points. The third is kind of like an energy associated with each point and I need to color my ...
1
vote
0answers
23 views

how to use interpolating functions to smoothly paint a polygon? [duplicate]

consider 4 different colors on the nodes (with different parameter values) how to interpolate when the color values are given on the nodes using the constructed interpolation functions to paint the ...
2
votes
1answer
44 views

ColorData input arguments not clear

A question about ColorData input arguments. I want to color a point in a graph I have, but I don't want to use the built in colors (orange, green, blue etc) I saw someone coloring a point using ...
1
vote
1answer
26 views

How to fill the multiple plots with different colors?

I have managed to write this out: Plot[{8 γ, 8 γ - 2 γ^2}, {γ, 0, 1}, Filling -> {1 -> 10, 1 -> {2}, 2 -> 0}] But I want to have different colors ...
1
vote
1answer
35 views

Soften colours in `DensityPlot`

I have a DensityPlot given by ...
3
votes
1answer
53 views

using colordata on a list

want to plot some rays with "warm" colors, so I started with a radial ray with a few points. ...
1
vote
1answer
31 views

Colour alternating concentric circles a different colour

This code gives me two sets of concentric circles with respective radii of 2n and 2n-1: ...
0
votes
1answer
50 views

how to color edges of a convex polygon,say a square, using interpolation with respect to the color in Mathematica

How do I color edges of a convex polygon, say a square, using interpolation with respect to the color (to form parametric polynomials) in Mathematica, so that the colors displayed on the 4 edges would ...
1
vote
1answer
58 views

Coloring multi-edges in graphs

I have the following edgelist and colors: ...
0
votes
2answers
30 views

Shading between two regions of two separate parametric curves/function

I have two long functions g12 and g14 in terms of g2: ...
2
votes
1answer
27 views

Invert color in MatrixPlot

How can I invert the grayscale colors when using MatrixPlot? My data is between 0 and 1 and the color scheme when using GrayLevel...
1
vote
2answers
53 views

ListLinePlot two datasets with two different colors

Is there a way to use single ListLinePlot? I don't like my solution. Here is a minimal example. ...
2
votes
1answer
72 views

What color space does RGB stand for? [duplicate]

Initially, using RGBColor, I assumed that it accepts values in sRGB color space. But when I started doing calculations and conversions between various color spaces, ...
2
votes
1answer
50 views

Are there any built-in functions to calculate CIE color matching functions?

I know there are some functions to work with XYZ color space, e.g. XYZColor, ColorConvert etc.. But I couldn't find any ...
4
votes
2answers
69 views

Coloring a binary mask image

My answer to this question involved changing the white in a binary mask to a different color. I came up with a few ways to do this: ...
4
votes
2answers
183 views

Periodic table with color code

Is it possible to do this table (from here) in Mathematica? In this table, the color code indicates the element’s dipolar character $(~ m\mu_m^2)$ in atomic units.
0
votes
0answers
10 views

Problem with color using ListDensityPlot [duplicate]

I have a small color problem ListDensityPlot. I made the following code to plot my data. When I compare with the original one, I have a color problem... I lost information in the middle : I get a big ...
12
votes
2answers
291 views

Weird shading artifacts in ContourPlot3D

Drawing certain shapes in ContourPlot3D gets these weird little shady artifacts with any colorfunction other than the default: ...
7
votes
2answers
166 views

Weighted graph with multiple different coloured non-weighted paths - styling

This follows on from my previous question answered here. Ultimately, I now have a graph which I've simplified for posting here: ...
0
votes
1answer
31 views
1
vote
0answers
27 views

How to design a custom color space?

I have picked some colors from the CIE LAB color space and want to blend the colors linearly construct a new color space. I first consider the 2D case as a starting point. Firstly, I choose a set of ...
3
votes
3answers
179 views

Creating a white and black color function

What I want to get is a density plot where the color function is thresholded: if the value of a function is larger a threshold, the color function returns white; otherwise, black. I found some ...
1
vote
0answers
32 views

Noob question on image color space editing

I'm new to Mathematica so this will be probably a dumb question. I want to convert an image to LMS color space and edit its channel. I think that what I have to do is import the image and use ...
6
votes
1answer
83 views

DensityPlot with equal mesh and a certain boundary

I would like to have a plot like the following: However, with my code: ...
4
votes
1answer
91 views

Hatch Fill in ListDensityPlot

I would like to make the black colour hatched/striped instead of a solid fill, so that when I overlay it on top of another plot, I can still see the colours underneath. I know how to change the ...
3
votes
3answers
75 views

Why is the color changed after applying ImageData?

I have an image square.png as below:- I imported the image as ImageSquare, and then applied ...
2
votes
1answer
34 views

Difficulty with making the color gradient in the Parametric3D plot

I am making a parametric 3D plot representing a graphical solution of a nonlinear equation. This explains, why the expression is so heavy. I would like to plot it with the color gradient such as "...
3
votes
1answer
35 views

Parametric plot radial Colouring

I would like to draw a circular segment with a colour gradient based on the radial distance from the center. Currently I have: ...
0
votes
0answers
27 views

Is there a way to make a Mathematica notebook look transparent? [duplicate]

In my computer, the command terminal is configured so that it has a black background color, with some transparency, so that I can see the wallpaper through the terminal. I really like this display and ...
4
votes
1answer
70 views

Points in CIE Lab color space

The following points are Lab values (CIELAB color space) points={{46.76, 34.51, 17.08}, {43.51, 34.83, 15.7}, {45.49, 32.92, 15.24}} what I would like to do is a) ...
4
votes
0answers
41 views

Exporting CMYK values

I am having problems exporting my objects as CMYK to either EPS or PDF in mathematica 11.3 on Windows. I have read the related question, how to export cmyk in eps. But simply this will not work, ...
3
votes
1answer
47 views

How to render a segmented volume?

Here is a segmented volume with 96 different features. I wish to visualize each feature with a distinct color. I followed this documentation and used Blend to ...
1
vote
2answers
78 views

Changing colors and scale in a Contour Plot

I am struggling with a very basic functionality of Mathematica. I have the following code: ...
0
votes
0answers
19 views

How can I change the scale labeling in ChromaticityPLot3D while keeping the rest unchanged?

I wish to have a 3D chromaticity plot for LAB color space. It can be easily done using ChromaticityPlot3D["LAB", "LAB"] ...
2
votes
2answers
73 views

Set colour of Epilog lines using ColorData

I am effectively trying to modify this solution from José Antonio Díaz Navas Drawing a vertical line at the mean of a bell curve so that the lines, rather than red, match the colour of the line - but ...
1
vote
0answers
42 views

How to reconstruct the result of ColorBalance manually?

I want to know about the mathematics behind white balance. I understand that it should be 3 different constants being applied to the red/green/blue channels. Thus I used ...
6
votes
3answers
196 views

How to change the color of the background of an image?

I have an image, and I want to change the color of its background. For example, I want to change the color of the sky from blue to green (or just to pure-white, for simplicity). I have already get the ...
1
vote
1answer
54 views

How to convert a ColorDistance from “CIE76” to “CIE2000”?

Consider, two unknown colors whose ColorDistance(Euclidean Distance (Default) in the CIE LAB color space) is 10 (say), where <...
3
votes
1answer
60 views

ColorFunction ranges for SphericalPlot3D

I'm not sure why ...
1
vote
0answers
26 views

Adapt ColorFunction to Plot Values

I have data from a stress-strain simulation of a washer: Please download it here: https://expirebox.com/download/46f2e72dd2bd04e857e9209b78f40ddf.html The output should look like this: I am trying ...
4
votes
1answer
116 views

How to use Glow in ParametricPlot3D

I get the output that I need from ...
3
votes
2answers
202 views

Set a fixed colour scale with DensityPlot

I am trying to plot some Zernike polynomials, but I want all of them to be plotted by using the same colour scale from -1 to +1 (i.e. the range of these polynomials). I am using the following code: <...
-1
votes
1answer
32 views
4
votes
2answers
170 views

3d points projected to y-z plane and colorized according x-velocity using a grid for averaging

This Question is related to this solved by @kglr and also this solved by @Henrik Schumacher. I have a set of 3d positions and velocities of particles, and want to colorize the projected positions ...
7
votes
0answers
87 views

Is there a way to make colorblind-safe color maps in Mathematica?

I was recently looking for contrast-uniform colormaps to produce a density plot for publication and among a bunch of nice resources (including in particular this one and this one) I found a nice paper,...
0
votes
2answers
45 views
3
votes
1answer
678 views

Beautiful Temperature Map [duplicate]

Simple Question: I want to create beautiful density plots like those on a Wikipedia page: Mathematica has a lot of built-in color functions but none of them is as good as Wikipedia's. I tried "...
1
vote
1answer
57 views

How to create a colour picture?

Hope to have a composite colour graphics after I put in complex number, part of t=1 is a color,part of t=2 is another color,and so on. Maybe my function is not good. How to fix it? Thanks a lot! ...
3
votes
2answers
119 views

How to draw a 3D curve using ListPointPlot3D with continuously changing colours?

I have a list of points in the form of data = {{x1, y1, z1}, {x2, y2, z2}, ......, {xn, yn, zn}} and I can draw a 3D curve using the data using the command <...
1
vote
1answer
49 views

3d points projected to y-z plane and colorized according x-velocity

I have a set of 3d positions and velocities of paticles: SeedRandom[1]; posdata = RandomReal[10, {1000, 3}]; veldata = RandomReal[{-0.5, +0.5}, {1000, 3}]; As ...