Possible bug in Mathematica 7 using ColorFunction
- To: mathgroup at smc.vnet.net
- Subject: [mg101112] Possible bug in Mathematica 7 using ColorFunction
- From: Jeff Lawlis <jlawlis at allendalecolumbia.org>
- Date: Wed, 24 Jun 2009 06:33:36 -0400 (EDT)
Problem: use of ColorFunction affects spacing of Greek characters in Frame label.
Here is a simple example of the problem:
SetOptions[Plot, Frame -> True, FrameLabel -> "Wavelength (\[Mu]m)"]
Plot[y = x, {x, 1, 1000},
ColorFunction -> (ColorData["VisibleSpectrum"][#] &),
ColorFunctionScaling -> False, Filling -> Axis]
Notice the space between the Greek character \[Mu] and the m, causing the m to overlap the right parantheses. The space disappears if you remove the ColorFunction gradient from the plot parameters. Also, if you change \[Mu] to a standard character like m, the formatting looks perfectly acceptable. To be honest, I don't really understand the reason for the [#] & following the ColorData tag, but the gradient doesn't seem to work properly without it. Is my syntax correct?
- Follow-Ups:
- Re: Possible bug in Mathematica 7 using ColorFunction
- From: peter <plindsay.0@gmail.com>
- Re: Possible bug in Mathematica 7 using ColorFunction