Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
1answer
84 views

Changing Color of error messages

I would like to change (from the stylesheet) the colors of the error messages. For example, trying to evaluate Solve[wrongsyntax = 0, var] gives an obvious error ...
1
vote
1answer
45 views

Changing text color for Input fields

I try changing the color for the Input fields. By going to Format >> Text Color >> Orange the color stays to the default value of blue?? For any other ...
0
votes
0answers
46 views

Problem with Z scale density plot color

I have a problem with my Z scale color... I would like to saturate the colors in order to see better the white ring... When I am doing the next line code ...
2
votes
1answer
56 views

Colorize mesh according to the nodepoint colors

Given a set p of points (2D), each with a unique color c, I can mesh these points easily ...
3
votes
1answer
50 views

Changing the color of a specific curve in ContourPlot [closed]

How do I change the color of a specific curve in my ContourPlot? I want to change the color of the last curve (+1.5 additive factor) from ...
1
vote
3answers
39 views

Using previously defined function in ColorFunction

I want to use a previously defined function as part of a function definition for ColorFunction. I tried the following and it worked: ...
3
votes
1answer
56 views

How to color Contours in ContourPlot with custom ColorFunction

I am plotting a contour as ContourPlot[f[x,y]==f0,{x,0,1},{y,0,1}] and I want to use my custom ...
9
votes
2answers
193 views

Efficient multicolor search

I'm hoping someone can help me improve the following fun code-snippet, which takes a target color and searches through a set of images to find the ones that most closely match: ...
5
votes
4answers
400 views

Separate coloring for each bar in a Stacked BarChart

In a stacked bar chart, how do I give individual stacks separate colorings? For example, how would I modify the following code ...
1
vote
2answers
70 views

Convex hull in 3D — two colorings for some of the faces

I'm new to Mathematica :( I need render 3D graphics of a convex hull of 100 points, but with two colorings. Image (a) is the convex hull $Q$ of 100 points, and (b) is $Q$ along with the shadow ...
1
vote
1answer
57 views
2
votes
3answers
98 views

Using the “TemperatureMap” color scheme to color a 3D spherical plot

Before all, I have read this question and others but it doesn't help me, I thought I understand the problem but actually not (see my post) Controlling ColorFunctionScaling I want to do a very simple ...
1
vote
1answer
22 views

ColorFunction with unexpected output [duplicate]

Here is a simple example of a rotational symmetric plot ...
0
votes
0answers
13 views

ListPointPlot3D colour based on another list [duplicate]

Suppose I have points data = {{0,1,0},{0,0,1},{1,0,0},{0.2,0.8,0}}; And another array exists with ...
2
votes
1answer
28 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
44 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
169 views

Rainbow on a curve

Writing: ...
4
votes
0answers
48 views

Export image as pdf, which is PDF/A valid

Assume following plot in Mathematica (version 11.2): ...
2
votes
1answer
53 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
85 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
61 views

PlotRegion and colors

I have to plot about 24 different predicates using RegionPlot ...
0
votes
1answer
60 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
351 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
30 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
330 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
58 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
80 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
37 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
261 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
25 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
75 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
41 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
56 views

Soften colours in `DensityPlot`

I have a DensityPlot given by ...
3
votes
1answer
62 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. ...
2
votes
1answer
40 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
55 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
87 views

Coloring multi-edges in graphs

I have the following edgelist and colors: ...
0
votes
2answers
35 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
40 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
77 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
106 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
89 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 ...
7
votes
2answers
107 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
225 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
16 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
299 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
171 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
35 views

density plot : same colors for same values

...
1
vote
0answers
32 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 ...