# All Questions

Tagged with
154 questions
Filter by
Sorted by
Tagged with
46 views

### Provide a list of colours for the points of ListPlot

I want to colour the points in a ListPlot with a list of colours, i.e. something like ...
67 views

### Change a formula [closed]

have a program consisting of a database of colors in L-a-b format. I want a formula to obtain the desired color by mixing different amounts of colors that are in the database. For example: I want ...
179 views

### Construct, in some manner, a four-dimensional “RegionPlot”

Let me abuse some Mathematica notation and formulate the following "command": ...
40 views

### How to label the nodes of a graph with the numbers in a list?

I have an adjacency matrix "am" and I want to color the nodes with four colors. Here I what do... ...
57 views

### Color scheme problem

I have a problem in the color scheme in a 2D spectra. After a lot of calculations, i can generate a picture like this in the last part using this instructions ...
217 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 ...
30 views

### Variable color function

Im trying to make a color function for listdensity that changes depending on the range of values in the array. ...
65 views

...
25 views

### Changing color on BoundingRegion when not a Graphics primitive or directive

If we take the documentation example for BoundingRegion and change "MinDisk" to ...
57 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 ...
149 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 ...
31 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 ...
352 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 ...
278 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 ...
28 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 ...
120 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 ...
67 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: ...
378 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 ...
51 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, ...
148 views

### How to use Glow in ParametricPlot3D

I get the output that I need from ...
61 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! ...
65 views

### Change colors of individual graphic elements

I generated an array of circles/disks with an hexagonal packing. Now I want to give each circle/disk a color depending on the value of a second list. ...
30 views

### Ranking Based Partitioning with Mathematica [duplicate]

I have three functions f_1, f_2, f_3 defined on 𝒟=[0,a]×[0,b] and I want to color in blue (resp. red, green) the region of points (x,y)∈𝒟 where f_1(x,y)=Max(f_1(x,y),f_2(x,y),f_3(x,y)) (resp. f_2(x,...
31 views

### How to use ColorSlider for some objects?

I wrote down some problem, but suddenly have a stuck. Consider following code : ...
56 views

### ListLogPlot bug? Points outside PlotRange change colours

Consider the following example ...
87 views

### Inverting and adding color to predefined color scheme (ListDensityPlot)

What do I have to do if I want to invert the color scale in "AvocadoColors", and add a condition that the zero value is denoted as white, whereas rest of values (<...
181 views

### ColorFunction in Graphics

I have several primitive figures to pass to the Graphics function to draw. These figures are weighed with some values, so I'd like to assign a color in accordance with some ColorFunction, say "...
357 views

### Matrix plot using RGB color coding

I am looking to plot a line of 250 discrete sites with a specified RGB color value based on the import file values. The import file has the following format: I want the first element in each row to ...
163 views

### How to display colored graphics object in the same color space?

Consider, I have a disk colored in "LAB" color space. When I convert the graphics into image object it is by default getting converted into "RGB" color space. ...
62 views

### How to vary color of a graphics primitive?

I would like to be able to vary color of a graphics primitive. For starters, varying color of a Line object along it's length would be sufficient. For example, if I ...
190 views

### Custom color in data points

Let's create some random data ...
139 views

### Line Colours Graphics3D - Plotting Photon Paths

The Problem I want to be able to change the colour of parts of lines in Graphics 3D. I don't know a good way. Below is how I've got so far and a diagram of I want. I.e. I want to be able to control ...
98 views

### Array Plot Custom Color Function Black Magic

Sorry, lots of code here, somebody explain this to me: ...
38 views

### Mathematica Exports EPS with Extra White Characters and Outline in BarLegend

Observe the following Mathematica code. Forgive me that it's so long: ...
156 views

### Plot four dimensional data consisting of discrete and continuous variables?

Suppose I have a relationship between four different variables, two of which are discrete and the other two are continuous. For example, let's look at the Binomial Distribution's PMF. If a random ...
71 views

### Mathematica Computational Limitations and ColorFunctions?

Observe the following function I have defined in Wolfram Mathematica and the array plot below: ...
1k views

### How can I properly define a custom function to give as a ColorFunction option?

So I thought that I knew what was going on. I defined my own color function like this: myRainbow = Function[x, Blend[{Purple, Blue, Green, Yellow, Red}, x]]; ...
364 views

### How can I define my own ColorFunction?

Suppose I want to define a color function to use more than one graph. I'd prefer not to type it out every time. I know that I can set ColorData like this: ...
124 views

### Ploting using Hue colors

Let's create some sample data ...
436 views

### Background coloring

I find the syntax of Background not clear. For instance in an example found in an old question ...
908 views

### how to get a list of built-in color names

I find myself sometimes doing something like ListPlot[data, PlotStyle -> Violet], just to discover that Violet is not ...
161 views

### Show single legend with approriate color range for a GraphicsGrid

I have a GraphicsGrid of MatrixPlots in the range between 0 and 1 and I want to show a single legend for all of the grid with the appropriate color range. I tried: ...
95 views

### How to get properties of ColorDataFunction objects programmatically?

The display forms of ColorDataFunction objects (especially after one clicks on the white + sign on them) indicate that these ...
212 views

### Filling a ListPlot with an optical spectrum

I have discrete optical spectra data consisting of pairs of wavelengths and intensities, and I would like to make a ListPlot in which the points are both joined, ...
153 views

### Color each half of a disc differently

Given a simple graphics object like a disc in black: Graphics[Disk[]] Is it possible to split the disc in the middle, i.e. color each half differently e.g. left ...
58 views

### Is ChromaticityPlot3D bugged in V11 with regard to FillingStyle?

On Mac OSX 10.10.5, a large number of the examples for ChromaticityPlot3D do not appear as expected including: Opacity in FillingStyle: ...
350 views

### What's the default color function for BarChart, PieChart? [duplicate]

If one increases the number of colored items in a BarChart or PieChart one can see that its color scheme is based on a gradient ...
166 views

### Change color of the Ocean in GeoRegionValuePlot

I would like to know how to replace the color of the ocean, while keeping the borders between different countries, i.e. replace the blue into transparent color (see the figure). I tried doing it with <...