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 tagged [color]

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

2
votes
1answer
27 views

ColorFunction in SphericalPlot3D fails with ImageValue

I would like to texture and deform a sphere with with images using various mapping functions between x,y and phi,theta. I figure I should start with $f(phi,theta)=(x,y)$ as a test case. However, I ...
1
vote
1answer
36 views

Adding color and opacity to 2D scalar function with respect to its abolute value?

I'm trying to represent the absolute density of a 2-variable scalar function by color and tranparency/opacity. By absolute denstiy, I mean the absolute function value. I tried to do the coloring as ...
4
votes
2answers
161 views

Rainbow on a curve

Writing: ...
2
votes
0answers
31 views

Export image as pdf, which is PDF/A valid

Assume following plot in Mathematica (version 11.2): ...
2
votes
1answer
42 views

List Plot of points colored by a list

I have a list of points, say a = Table[{RandomReal[1], {RandomReal[1], RandomReal[1]}}, {i, 100}] I would like to plot the 2D points in the second column, but ...
3
votes
0answers
69 views

Image Processing: Detecting certain edge features over varying contrasts

Images and description- • The images are obtained from the frames of a video (>1000 images) • As shown, there are contrast variations between the images • The bubble shifts horizontally ...
0
votes
1answer
56 views

PlotRegion and colors

I have to plot about 24 different predicates using RegionPlot ...
0
votes
1answer
42 views

How to change colors of 3D parametric plot

I have a 3D iterative plot, where each iteration (1,2,3) is represented by equation of piecewise linear function. I am trying to change the colors of plot, to get for every iteration (piecewise ...
3
votes
3answers
337 views

How to calculate surface of specific color?

I have black-and white picture like this Can anyone tell me is it possible to calculate surface that black color occupies in this picture, so I know what's the percentage that black color has in ...
2
votes
0answers
29 views

Why is ColorFunction called more than once for every color cell

I was trying to use a custom ColorFunction with Raster and I noticed it gets called seemingly a random number of times for each ...
7
votes
2answers
318 views

How to color nodes in a adjacency graph with different colors?

Let us consider a binary adjacency matrix $M$. We want to color the nodes of corresponding adjacency graph with 4 different colors such that two adjacent nodes have different colors. How to find 4 ...
1
vote
2answers
56 views

Colored grid congruences

How can I construct a colored grid in Mathematica representing the remainder of $x^{y}$ modulo a given prime $p$?(with coordinates) As such:
2
votes
1answer
76 views

How can I Rescale a ColorFunction on a 3D plot

I'll like to know if there is a way to do this colorfunction scaling on 3D plots ...
0
votes
0answers
36 views

Create a color function from dynamic panel

I would like to generate a color function from the dynamic panel code and use it as I want...instead of using Copy to Clip Board and then past in myTM.... Any idea ?...
4
votes
2answers
257 views

How to graph multiple lines of the same color that each contain multi-colored points

I need to make a graph with multiple lines and points. Each line contains 3 points that should each be colored black, yellow, and red. The line should be a neutral gray. I managed to create a graph ...
0
votes
0answers
24 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
24 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
60 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
36 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 ...
2
votes
1answer
42 views

Soften colours in `DensityPlot`

I have a DensityPlot given by ...
3
votes
1answer
58 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
34 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
53 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
68 views

Coloring multi-edges in graphs

I have the following edgelist and colors: ...
0
votes
2answers
32 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
35 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
59 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
82 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
61 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
81 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
200 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
15 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
296 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
169 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
34 views

density plot : same colors for same values

...
1
vote
0answers
29 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
220 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
90 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
98 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
81 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
43 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
36 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
74 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
44 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
48 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
98 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
20 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
78 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 ...