Tagged Questions
1
vote
0answers
36 views
Scaled ColorData Function [duplicate]
I have a four-dimensional array c, in which the first dimension represents time and the other three dimensions represent (x,y,z) ...
2
votes
2answers
78 views
ColorFunction based on data
I have a list of numbers, and I would like to plot them using ArrayPlot (which is easy, usually :)). I would like to be able to color the elements of the plot based on the average of the list: one ...
13
votes
6answers
325 views
X-Y scatter plot with coloring dependent on Z value
I have an array of $(x,y,z)$ triples (array dimensions: N x 3), from which I can make a 2D scatterplot of $(x,y)$ values:
...
2
votes
2answers
148 views
10
votes
4answers
382 views
Coloring Points in a Plot, based on their position in the list
Before I describe the question, I'd like to say that I've seen the excellent answers posted here but have not managed to get them to work for my own data.
I have a list of values that I would like to ...
-7
votes
2answers
181 views
Color plot markers using If statement
I am calculating eigenvlaues. Some are negative, some are positive. I define the index nn and mm (as well as np and mp) of each matrix element by some functions that assign positive, zero and negative ...
2
votes
3answers
130 views
Controlling Bar Color in BarChart precisely [duplicate]
I'm trying to control the color of individual bars in a BarChartwhen I pass a 2 dimensional list of data to plot. What I want to accomplish is that for each pair of ...
10
votes
2answers
129 views
How does one adjust ColorFunction quality independently of surface quality?
I have a function $f:\mathbb{C}\rightarrow\mathbb{C}$ which I would like to visualize by by plotting $|f|$ with Plot3D using $\operatorname{Arg}f$ as the ...
4
votes
2answers
222 views
Plot3D with coloring based on phase value of f
I'm reading a sample chapter of Visual Complex Functions by E. Wegert. Near the bottom of this page, there is a link "Download Sample pages 1 (pdf, 2.4 MB)" which allows you to read Chapter 2 of the ...
7
votes
2answers
508 views
problem with coloring spherical harmonics
I want to color a spherical harmonics. So I write as follows.
...
6
votes
0answers
111 views
Break[] inside ColorFunction
f[x_?NumericQ]:= (Do[Break[],{i,1,2}];x)
Plot[x,{x,0,1},ColorFunction->(ColorData["Rainbow"][f[#]]&)]
Break::nofwd: No enclosing For, While, or Do found ...
1
vote
2answers
123 views
Filling for ListPolarPlot
I want to use Filling for ListPolarPlot in such a way that the points in the list are joined to the origin with a line colored ...
2
votes
2answers
210 views
Spreading colors in ListContourPlot
I have a data file with triplets. The first two numbers indicate the x and y position, while the third one is the log10 value of a particular indicator. I want to create a 2D plot in which the ...
8
votes
2answers
371 views
Use different ColorFunction for each function plotted
When plotting two curves on one plot, you can specify different colors for each function:
Plot[{Sin@x, Cos@x}, {x, 0, 4π},
PlotStyle -> {Red, Blue}]
To ...
5
votes
3answers
167 views
How can I set different opacity values for the background of a ListPlot
In the following example:
ListPlot[{1, 2, 3}, Background -> Green]
how can I set the Opacity[] for the background such ...
6
votes
2answers
228 views
Problem achiving effect I want with ColorFunction
I want to create a plot showing historical annual maximum and minimum temperatures. I've figured out how to get 10 years of historical temperature data from Wolfram|Alpha. The plot below shows the ...
3
votes
3answers
317 views
Comparing 2 Data Sets in a Single Plot
I have 2 data sets, data1 and data2 with large (in the thousands) amounts of data
and I want to compare them
in a plane. They ...
1
vote
1answer
135 views
Use selfdefined ColorFunction to encode z dimension with predefined limits
In my last question we defined a colorfunction cf. Now I want to use this ColorFunction for a number of different plots (...
3
votes
2answers
240 views
Define a color function based on color samples obtained from ColorBrewer
I am quite new to mathematica and I am searching for a way to create a smooth colormap based on the samples given by http://colorbrewer2.org/ .
Is it possible to create a interpolated function from ...
5
votes
3answers
257 views
ColorFunction and/or ColorScaling issue with ParametricPlot3D
My goal is to use ColorFunction to color a cylinder based on the $z$ value of a separate Plot3D. I'm not sure if I am making a ...
1
vote
1answer
116 views
Is this a bug with ColorFunctionScaling?
Is this a bug with ColorFunctionScaling?
When I try to supply my own ColorFunction Mathematica seems to partially ignore it, ...
2
votes
1answer
103 views
Why is the test in my ColorFunction not behaving as expected?
In my code I have a ColorFunction that is meant to highlight all values of $f(x)$ that are greater than $x$
...
9
votes
2answers
207 views
How can I prevent ColorFunction from disabling antialiasing in graphics?
When I use ColorFunction, the appearance of my plots is ruined, changing from this
which has the normal smooth lines and antialiased fonts, to this
in which ...
2
votes
2answers
415 views
How to assign different colors to list plotted in ParametricPlot? [duplicate]
Possible Duplicate:
Difference in Plot when using Evaluate vs when not using Evaluate
I am plotting galaxies and I would like to color them according to their redshift values using a ...
12
votes
2answers
521 views
Using a ListDensityPlot to map color onto a ListPlot3D graph
I have a 3 column list of data points. The first two columns correspond to x and y coordinates, with data points creating a surface in the z direction from column 3. This gives me a nice wavy ...
4
votes
1answer
534 views
Fixed color scale in multiple density plots
I think there should be a simple solution for my current problem, but neither StackOverflow (or the help of Mathematica) or Google have it.
I have to plot multiple density plots with a color ...
6
votes
4answers
329 views
Determining the RGB values of the default plot color
In Mathematica 7, the default plot color is a purple-like color (although I think it is not Purple). Is it possible to use Mathematica to determine the RGB color ...
3
votes
2answers
176 views
Plotting two functions with dependent input function
I have defined a function:
myJ2[n_] := 1/n* Total[RandomVariate[NormalDistribution[0, 1], n]^2]
This is basically an approximation to the gaussian integral. I ...
10
votes
2answers
333 views
How to vary color of fill between listplots based on y-distance between them
I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
5
votes
5answers
598 views
How do I fill in a circle made by ParametricPlot with one solid color?
I have a very simple question but I am new with Mathematica.
I made a circle on a parametric plot and I made the line black.
I want to make the inside of the circle on the parametric plot red. So the ...
21
votes
4answers
1k views
Density plot on the surface of sphere
I would like to make density plots of a list of (size 2 or 3) spherical harmonics on the surface of a sphere. I'd like to plot it so that each element of that list is using a different color (red ...
2
votes
1answer
175 views
Creating multicolored meshed plots (connected scatter plots) using ListPlot
I would like to make colored scatter plots where the dots are connected by lines. I have tried the following, using Joined->True to connect the dots and ...
6
votes
3answers
351 views
Adapt ColorFunction in Array Plot
The problem I'm facing is how to adapt ColorFunction so that it ranges from green (low values) to red (high values):
...
5
votes
2answers
267 views
Sharp ListDensityPlot
I have some quantity varying with time (horizontal axis of the plot): it first oscillates then it has a jump (larger than the amplitude of the oscillations), then it continues oscillating. I have that ...
3
votes
2answers
364 views
Use ColorFunction in ListLinePlot with If
The following code
ListLinePlot[{2, 4, 6, 8, 10, 12},
ColorFunction -> Function[{x, y}, If[x <= 3, Blue, Red]]]
should produce blue lines for $x\le3$ and ...
9
votes
1answer
166 views
Error Using Sow in DensityHistogram with ColorFunction
To find the color values used in a plot, I was using Sow as shown here:
...
8
votes
1answer
241 views
Discrete coloring in Plots
I would like to have a plot that is filled to the axis with Green if the y value is greater than 10, and ...
11
votes
2answers
213 views
Using uniform coloring in MatrixPlot
I have a rectangular matrix, which is m-by-10. Each element is either 0 or 1. I would like 0 to correspond to white elements, and 1 to red elements. This works ...
15
votes
2answers
319 views
Exporting a dashed plot with a color gradient to a vector graphics format ruins the dashing
When exporting a dashed plot with a color gradient to a vector graphics format such as EPS or PDF, the dashing is partly ruined. For example, this command:
...
7
votes
4answers
960 views
Coloring Points in a List Plot [duplicate]
Possible Duplicate:
ListPlot with each point a different color and a legend bar
I want to color the points in a list plot using a function of the (x,y) values.
I tried this (example with ...
5
votes
1answer
515 views
ListContourPlot-ColorFunction
How can I use ONLY the central 90% of the spectrum, not the whole range? For example, I do not like to see the lowest values in purple, but in deep blue color.
...
6
votes
1answer
249 views
Color linear interpolation of ParametricPlot3D
I am looking for any ideas about how to colorize an ellipsoid with a custom gradient style or by a Blend function. I would like to colorize ellipsoid as follows:
...
14
votes
2answers
1k views
How to save plots in grayscale
As sophomoric as this question seems, how should I save plots in grayscale in Mathematica?
I generally like eps images for their scalability and I use ghostscript or other third party perl scripts ...
26
votes
4answers
1k views
How to change the default ColorData used in Mathematica's Plot?
This question leads on from the recent question What are the standard colors for plots in Mathematica?
There it was determined that the default color palette used by ...


