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.

6
votes
3answers
215 views

Coloring lines in a graph the same color if they are the same length

If one has a graph with any number of points, as in the example below, how can one color all the lines that are of the same length in the same color? (The points are ...
2
votes
1answer
55 views

Weird lighting for spherical plot

Consider the following code : ...
4
votes
3answers
156 views

Reverse ColorFunction or ColorData

please excuse my bad English, I'm not a native speaker. This should be fairly simple: Is there a simple way to "reverse" ColorFunction or ColorData? Let me explain what I mean. Let's say, we have ...
0
votes
0answers
29 views

Variable color function

Im trying to make a color function for listdensity that changes depending on the range of values in the array. ...
3
votes
1answer
50 views

Highlight certain values based on position

How to highlight or color certain values in a list based on position.. For example x = {1,2,3,4,5,5,5,6}... I want to plot x and highlight values (Red) in a position such as {0,4,5} and others should ...
0
votes
1answer
61 views
2
votes
1answer
32 views

Using Maximize with LABColor

I'm writing a function that, given a color, returns a contrasting color. It does this by maximizing the ColorDistance between the input and output colors. However,...
2
votes
1answer
29 views

Color a grid of ArrayPlots using total value of each array

This Seems like it should be relatively straight-forward, but I am struggling to find an answer. I would like to color each ArrayPlot in a GraphicsGrid by its Total. I can get the grid of ArrayPlots,...
0
votes
1answer
23 views

Changing color on BoundingRegion when not a Graphics primitive or directive

If we take the documentation example for BoundingRegion and change "MinDisk" to ...
1
vote
1answer
52 views

Coloring edges by weight and changing color but keeping shape for CommunityGraphPlot using PlotTheme->“Marketing”

(Apologies, but I cannot share the data that I am using for these graphs.) I am finding communities in my data set by using CommunityGraphPlot, and the results looks pretty good: ...
4
votes
1answer
93 views

What is the algorithm behind ImageRecolor?

I'm wondering which algorithm is implemented, given that recoloring requires a lot of assumptions to really get the desired color. For example, coloring a dark grayscale image into a light green can ...
0
votes
1answer
35 views

How to plot two functions together when one of them needs to be a series of dots, with common labels and colors?

I have two functions that I want to plot together. I want to plot the non-linear and the linear (NL and L in my code) functions together, but I wish that the NL function is plotted as a series of dots ...
1
vote
0answers
52 views

Colors in contours

When I want to draw a wide range of pictures,the value z=1 or z=-1 corresponds to plate patterns,I want it corresponds to one colour.This problem arises only when the scope of painting is ...
1
vote
1answer
31 views

Access system selection colour

On some operating systems it is possible to customize selection colours and other GUI colours. I have set yellow for mine: Is it possible to retrieve this colour in Mathematica, so that it can be ...
0
votes
0answers
61 views

A way to calculate colour from wavelength?

I'm trying to create a script taking my experimental values of measured radiance and turn it into xyz and rgb colour values. I import table with colour matching functions from here -http://cvrl.ucl.ac....
0
votes
0answers
53 views

Is it possible to develop a function that permits to generate RGB jet colormap? [duplicate]

Is it possible to develop a function that permits to generate RGB jet colormap (from blue to red) based on one criterion?
6
votes
1answer
179 views

How can an equation having ColorDistance function be solved?

I wish to extract the colors on the L axis in the CIELab color space such that the CIE2000 ...
3
votes
1answer
89 views

Combine two or more DensityPlot3Ds with different color schemes

I have two DensityPlot3D objects where the opacity and coloring are both physically meaningful, and I'm looking for a way to overlap them so that the resulting opacity/color is visually combined in an ...
1
vote
0answers
46 views

Use country flag in chart style for a bar chart

I am creating a stacked bar chart from 2017 using the following data set ...
2
votes
0answers
30 views

Logarithmic scale in the legend of a GeoRegionValuePlot

Is there a way to make the bar legends show the values 1 to 9000 using a logarithmic scale than what Mathematica is automatically giving me? Here's my plot: The data I am using: ...
11
votes
1answer
221 views

ContourPlot — How do I color by contour curvature?

I'm plotting the stream lines of fluid flow past a cylinder, and I would like the colors to increase with contour curvature (i.e. increase as the velocity of the flow increases. Here's a MWE that ...
3
votes
1answer
96 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
49 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
53 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
74 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
54 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
42 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
68 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 ...
10
votes
2answers
197 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
594 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
76 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
58 views
2
votes
3answers
143 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
26 views

ColorFunction with unexpected output [duplicate]

Here is a simple example of a rotational symmetric plot ...
0
votes
0answers
14 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
29 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
57 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
174 views

Rainbow on a curve

Writing: ...
4
votes
0answers
52 views

Export image as pdf, which is PDF/A valid

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

PlotRegion and colors

I have to plot about 24 different predicates using RegionPlot ...
0
votes
1answer
104 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
364 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
335 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
61 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
96 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
41 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
265 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 ...