MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Possible bug in Mathematica 7 using ColorFunction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101136] Re: Possible bug in Mathematica 7 using ColorFunction
  • From: computer algebra <mike.honeychurch at gmail.com>
  • Date: Thu, 25 Jun 2009 07:10:59 -0400 (EDT)
  • References: <h1svc1$mi9$1@smc.vnet.net>

On Jun 24, 5:32 am, Jeff Lawlis <jlaw... at allendalecolumbia.org> wrote:
> Problem:  use of ColorFunction affects spacing of Greek characters in F rame 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 them 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?

I got it to render ok (V7.0.1 on OS X 10.5.7) by adding an invisible
space:

(\[Mu]\[VeryThinSpace]m)

...but I'm not sure why the problem you've reported occured.

ColorFunction -> "VisibleSpectrum" is all you need.

Mike


  • Prev by Date: changing color, size etc on text
  • Next by Date: Wolfram | Alpha: Acres per square mile? (oddities)
  • Previous by thread: Re: Possible bug in Mathematica 7 using ColorFunction
  • Next by thread: Re: Possible bug in Mathematica 7 using ColorFunction