Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 53541

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

9 votes
2 answers
6k views

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

I'm assuming that I didn't define my color function correctly, because if, for example, I use the built-in color functions like "DarkRainbow," both plots behave as expected. … So what needs to be changed in my color function definition to get the desired output? Also, if I turn off color function scaling, how do I control which values get mapped to each color? …
EllipticalInitial's user avatar
1 vote
3 answers
307 views

Plot four dimensional data consisting of discrete and continuous variables?

The only way that I can think of to effectively visualize this in Mathematica would be to use an ArrayPlot with the $x$ and $n$ being the axes and one of $P(X=x)$ or $p$ being mapped to a color function …
EllipticalInitial's user avatar
0 votes
0 answers
1k 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. … For example, if I try to do something like this: Unprotect[ColorFunction]; ColorFunction["myCF"] = Function[{y}, ColorData["myRainbow"][y]]; Protect[ColorFunction]; and then try to call that color function …
EllipticalInitial's user avatar
1 vote
0 answers
50 views

Mathematica Exports EPS with Extra White Characters and Outline in BarLegend

Observe the following Mathematica code. Forgive me that it's so long: test[y_] := ArrayPlot[Table[nd[y, 1, K, n], {K, 1, 15}, {n, 1, 15}], ColorFunction -> "DarkRainbow", ColorFunctionScaling - …
EllipticalInitial's user avatar
1 vote
1 answer
214 views

Color Function not correctly mapping to range

26% should be mapping to a color somewhere around Purple/Blue, but it's getting mapped all the way up to the color white! … Can somebody please explain what is going on and what I need to do to get the desired color output? …
EllipticalInitial's user avatar
3 votes
1 answer
117 views

Mathematica Computational Limitations and ColorFunctions?

Either way, that hideous red color is consistent regardless of the color scheme that I use. For example, with DarkRainbow: It's the exact same shade of red. … Is it possible to change this dark red color? …
EllipticalInitial's user avatar
0 votes
0 answers
118 views

Array Plot Custom Color Function Black Magic

Does Mathematica not recognize what the color black is? Hello? I just don't understand why it's doing this. … It works for literally any color other than black. Obviously there are easy workaround to this, like choosing another color that's really close to black, but seriously, what's going on here? …
EllipticalInitial's user avatar