Timeline for How to assign special colors to the output of DensityPlot?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2014 at 22:54 | comment | added | user14345 |
f[x_, y_] := Which[x/y == 2, 2, x/y == 3, 3, x/y == 1, 0, True, 1]; DensityPlot[f[x, y], {x, 0, 3}, {y, 0, 3}, ColorFunction -> Function[{x, y}, Piecewise[{{Blue, x == 3}, {Orange, x == 2}, {Black, x == 1}, {Green, x == 0}}, Yellow]], PlotPoints -> 32]
|
|
May 15, 2014 at 22:54 | comment | added | user14345 | spot following example: | |
May 15, 2014 at 22:52 | comment | added | user14345 | The above method dosn't work correctly!the output colors is't correct. | |
May 15, 2014 at 12:41 | comment | added | user14345 | This idea can't work with this algorithm . | |
May 15, 2014 at 10:28 | comment | added | user14345 | how to use this method in above algorithm? | |
May 15, 2014 at 10:19 | review | Suggested edits | |||
May 15, 2014 at 11:01 | |||||
May 15, 2014 at 10:08 | review | Suggested edits | |||
May 15, 2014 at 10:17 | |||||
May 15, 2014 at 9:13 | history | answered | Matariki | CC BY-SA 3.0 |