Questions tagged [color]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

Adding an empty circle to this plot, plus changing styles

I cannot find a god solution to highlight the intersection point between these two curves, in the plot I made: ...
Enrico M.'s user avatar
  • 779
9 votes
5 answers
3k views

Digits of Pi in colored spiral

In How to make the digits of π go around in a spiral like this? it is described how to plot pi in a spiralform (in my case as binary number): ...
ralf_7's user avatar
  • 93
3 votes
2 answers
111 views

Changing ColorTable on Existing Contour Plots

Context Recently, Bob Sandheinrich published a very useful code to change interactively colours of a given plot as follows: ...
chris's user avatar
  • 22.6k
0 votes
1 answer
79 views

Problems with RegionPlot and Legended

I have a RegionPlot that shows a couple of problems. The first one is that the region that borders the axes is overpassing them, there's a bit of the colour of the region outside the limit of the axes....
Sohan Navarro Costa's user avatar
3 votes
1 answer
153 views

Convert black and white pictures into color images

I have a digital image of an old black and white picture. Is it possible, using Mathematica, to convert this old picture into a black and white image? For example: This transformation was done using ...
Michiel van Mens's user avatar
0 votes
0 answers
36 views

Density Plot Not Printing The Entire Range

I have a density function running on a piecewise function. When I plot the x range for full 0 to 1, the upper right corner color range doesn't print, but it works when I plot the x range for that ...
Monire Jalili's user avatar
13 votes
2 answers
583 views

How to produce an Itten color star?

Johannes Itten (1888 - 1967) was a Swiss painter and designer From 1919 to 1922, Itten taught at the Bauhaus School in Weimar, teaching his students the basics of materials, composition and color. ...
eldo's user avatar
  • 47.8k
4 votes
2 answers
166 views

Modify the color scale in ColorFunction

I'm trying to get the following intensity map with the same style and colors But the closest I got was using SolarColors in Mathematica ...
Soliton-104's user avatar
0 votes
0 answers
50 views

Creating a 3D Plot with Colored Lines from 2D Data Sets with Color Labels

I got the following table of my data:Amplitudes at each site for different t1-values and energy eigenvalues]1 and I am trying to plot the amplitudes at each site for every t1-value such that a 3Dplot ...
Carolina M. S.'s user avatar
0 votes
0 answers
161 views

Problem generating the heat map

I'm trying to generate the following heatmap (Figure 2, page 7 of this article) The equation I used for the heat map was ($R_{sh}$, equation 52 in the paper) ...
Soliton-104's user avatar
0 votes
0 answers
44 views

Linear RGB to Stockman-Sharpe LMS conversion

I'm working on a psychophysical project that aims to emulate LMS cone responses accurately. My final goal is to transform linear RGB coordinates to physiologically relevant LMS responses (Stockman ...
Vyso's user avatar
  • 1
0 votes
1 answer
70 views

Trouble colorizing a table using grid command

I am trying to colorize rows in a table defined with the Grid command using ItemStyle. I have simplified my problem down to the following. Table["Blue",2] evaluates as the list, {Blue,Blue}. ...
matrixbud's user avatar
  • 425
1 vote
3 answers
562 views

Can colors be included in strings?

Colors are displayed in output like squares of the corresponding color. Say, if input is Blue, the output will be a blue square. I would like to use this in a ...
მამუკა ჯიბლაძე's user avatar
7 votes
3 answers
594 views

Curvature of a Klein bottle

1. Problem statement An old answer of mine: Computing Gaussian curvature shows how to color parametric curves and surfaces according to their curvature. However, the methods used there will fail for ...
eldo's user avatar
  • 47.8k
3 votes
2 answers
215 views

How to sort a list of colours and assign it to four categories?

I have a list of colours with RGB values like this : ...
dinesh's user avatar
  • 105
7 votes
5 answers
499 views

How to color specific faces of a polyhedron?

The following code helps me draw a polyhedron. I would like to color each triangular face in red and make the edges of the polyhedron thicker. I've looked at the post, but I'm still not sure how to ...
licheng's user avatar
  • 2,005
1 vote
0 answers
79 views

How to emulate the curves and color of the video? [closed]

I found this animation on the internet, it is part of a joke, but I was intrigued by how the video can be emulated with the colors and the curve proposed in the video.The video talks about neural ...
Pamela's user avatar
  • 309
0 votes
1 answer
57 views

How to change FeynArts Paint style settings?

I'm a Mathematica stylesheet enthusiast. I love using beautiful stylesheet instead of the default one, such as Dracular. I'm also a physics researcher on scattering amplitudes, which forces me to use ...
Handger's user avatar
  • 19
4 votes
1 answer
96 views

Assign BoundaryStyle to more than one region in Region Plot using a theme

Consider the minimal example RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Then I can use ...
vozdrugíja's user avatar
2 votes
2 answers
78 views

Restrict the background colour in a ParametricPlot region

I am trying to plot this diagram, distinguished into three separate regions by the white curve. The code that I used for this purpose is provided below: ...
codebpr's user avatar
  • 899
4 votes
1 answer
227 views

Okhsl colour space

I am trying to recreate the Okhsl colour space from here. Below are the hue-saturation plots desired: I can create something similar (code adapted from here) with ...
martin's user avatar
  • 8,152
2 votes
1 answer
35 views

Heatmap resolution issues

I am trying to plot a heatmap from the following code. I have a problem where the colour seems to stop before reaching the corners. Please can someone help me to make the colour run all the way to the ...
Gwaine's user avatar
  • 33
0 votes
1 answer
63 views

How could I customize ColorRules or ColorFunction in MatrixPlot?

Hello and have a nice day! I need to make MatrixPlot for some data. Here you can find a notebook with preprocessing raw data and some functions from below text. I want all "Inf" values to be ...
Aleks's user avatar
  • 25
3 votes
1 answer
33 views

How to include the default color for ArrayPlot ColorRules to the SwatchLegend?

...
Syed's user avatar
  • 41.6k
3 votes
2 answers
141 views

How to make the same color scale range for all plots?

I would like to make a density plot of a function: $f=B(r^2+z^2)sin^2z$ for some range of parameter B. The color scale for each graph has a different value. For instance, for $B=5: f=600$ is white ...
Mam Mam's user avatar
  • 1,753
6 votes
2 answers
258 views

How to fill with color the space between plotted points?

In this program I am rotating a rhombus about the origin, in a normed non-Euclidean flat metric space : $ ||x||_n =(|x_1| {}^n+|x_2| {}^n){}^{1/n} $ , with $ n=\frac{1}{3} $ The rotation preserves ...
dimachaerus's user avatar
3 votes
3 answers
111 views

How to access the index of a list for the colorfunction of a listplot?

From the documentation of ListPlot, ListPlot[Table[Style[{Cos[t], Sin[2 t]}, Hue[t/(2 Pi)]], {t, 0, 2 Pi, Pi/20}],PlotStyle -> PointSize[Medium]] Varies the ...
Wouter's user avatar
  • 396
4 votes
3 answers
286 views

I want to plot the solution with different values of S, How is it?

I was solving an ordinary non-linear differential equation of the fourth order in the picture attached to the following code: ...
ahmed's user avatar
  • 73
2 votes
1 answer
77 views

How to change the plot style of several curves, in this manipulate box?

I'm sure this is very easy, but I'm currently unable to make it to work properly. I just need to give different colors and style to the three curves shown in this manipulate box: ...
Cham's user avatar
  • 3,959
0 votes
0 answers
68 views

Smooth color gradient with ColorFunction (pdf export)

I wanted to plot a 2d curve (a function of the variable $k$) whose color intensity should be given by another function of $k$. This is the code: ...
Francesco S's user avatar
7 votes
3 answers
254 views

Makes AxesStyles multiple colors

I'm aware you can change the axis of a Plot to be one color with AxesStyles, but how do I make it so one axis is more than one color? Specifically, I would like to make both axes of a 2D plot the ...
Muhammad Mir's user avatar
1 vote
1 answer
88 views

How to color the vertices of a graph so no adjacent vertices have the same color?

How can I color the vertices of a graph so that no pair of adjacent vertices share the same color? The function FindVertexColoring can be used for this.
Peter Burbery's user avatar
4 votes
3 answers
185 views

How to standardize the color-coding of several 3D and contour plots

I am building a series of images containing of pairs {ListPlot3D, ListContourPlot}. Each pair I build of the same data. Different pairs are built using different lists. Each list consists of triples ...
Alexei Boulbitch's user avatar
0 votes
0 answers
57 views

Plot Color Discontinuous with Legend

Im working on a project that simulates the temperature distribution within a material. Right now I have multiple plots using the ColorFunction -> "TemperatureMap" and a legend on the side....
Adam's user avatar
  • 11
1 vote
0 answers
37 views

Coloring a ParametricPlot3D with a custom color function [closed]

I am plotting a trajectory $\left(x(t),y(t),z(t)\right)$ as a ParametricPlot3D and want to assign the value of another function $C(x,y,z)$ as the color this parametric plot at point $\left(x,y,z\right)...
shouldbedoingmythesis's user avatar
4 votes
5 answers
292 views

Coloring data points for different ranges

...
user84456's user avatar
  • 1,524
6 votes
2 answers
905 views

How do I get such colorful plots with bar legends colored like this?

Each line in this plot is for the same equation with different values of a parameter $\beta$; the range of $\beta$ is shown in the lines plotted and the bar legend. I want to know how to create such ...
Bibhash Das's user avatar
1 vote
0 answers
40 views

Getting hue correct in a complex argument plot [duplicate]

I'm trying to generate a picture of the phase of a complex function defined on a rectangle. I'm using Hue (which is cyclic) and DensityPlot, but it's leaving out certain "corners" of the ...
Bruce Bartlett's user avatar
0 votes
0 answers
58 views

How to export the data of a contour plot from Wolfram Mathematica?

I want to export the data of a contour plot that I made in Mathematica to graph it in another program. But when export the .dat, in which I want 3 columns to make the contour plot, it exports more ...
ssj's user avatar
  • 1
2 votes
0 answers
40 views

Coloring Vector if it points at (0,0,0) or (1,1,1)

I'm trying to plot a 3D vector field on a cubic space between [0,1]. I wanted to color the vectors based on their direction, where if they point towards (0,0,0) or the closer corners (1,0,0), (0,1,0), ...
Alexandre Pires's user avatar
1 vote
1 answer
66 views

BarLegend inconsistent with DensityPlot colors

In this post, 2D transient heat equation solution, @Alex Trounev helped me, in setting up a 2D simulation of a heat transfer problem where multiple materials are involved. The code is here: ...
Luigi's user avatar
  • 1,271
3 votes
2 answers
103 views

Customizing BarLegend for Missing[ ] data

My apologies if something similar has been asked, I could not find a question on the same issue. I have created the following colour map (heat map) using a toy sample with ...
Titus's user avatar
  • 1,320
1 vote
0 answers
63 views

Calculating luminance in $\rm{cd/m^2}$

Let's say I have an image of the following transparent material through which light is passing, I want to calculate the luminance in units of $\rm{cd/m^2}$. What I did is ...
a019's user avatar
  • 811
1 vote
1 answer
162 views

Colored plot with Wolfram Mathematica

I saw this image thus I guess that it is possible to color some regions in a plot. What kind of command can I use to have a similar plot?
Spook82's user avatar
  • 95
1 vote
2 answers
80 views

Color coding a parametric plot based on given conditions

This question is based on the answers provided here and here. Basically, I have the following Mathematica code to calculate the Lyapunov exponents as a function of Temperature: ...
codebpr's user avatar
  • 899
5 votes
3 answers
542 views

Fill rainbow along vertical axis

Plot[x^2, {x, -2, 2}, Filling -> {1 -> Top}, FillingStyle -> Automatic, ColorFunction -> {Function[{x, y}, ColorData["Rainbow"][4 y]]}] ...
user84456's user avatar
  • 1,524
0 votes
0 answers
32 views

DensityPlot with 4 region. Help please!

How to write a function in Wolfram Mathematica that returns the values 0,1,2,3 in random order and draw a diagram for it as shown in the picture using the DensityPlot function. Help please!!
Iра Сотник's user avatar
1 vote
2 answers
54 views

ColorFunction for StreamPlot

I would like to color all lines witch have a positive vertical component in red and the other in blue. How can I do that? ...
Mark Smirnov's user avatar
0 votes
0 answers
67 views

how to get this view in math,(always appear like this)

How do I make math look like this forever?
zeros's user avatar
  • 2,253
1 vote
1 answer
168 views

Normalizing the Range for the Color Scheme and Legend of Contour Plots

I have the below codes to create contour two plots that I then merge together to show at the same time. They are from mesh maps of above and below a dam so i cannot make the contour plots together or ...
Andrew Bowsher's user avatar

1
2 3 4 5
25