Tagged Questions
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 ...
9
votes
2answers
211 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 ...
20
votes
6answers
699 views
ColorData[“VisibleSpectrum”] is wrong?
I am trying to visualize the visible spectrum using the built-in ColorData["VisibleSpectrum"] function which "colors based on light wavelength in nanometers". But I ...
9
votes
1answer
169 views
Error Using Sow in DensityHistogram with ColorFunction
To find the color values used in a plot, I was using Sow as shown here:
...
15
votes
2answers
323 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:
...