Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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?


  • Prev by Date: *slowing down* a Mathematica process (Dynamic/Refresh question)
  • Next by Date: Re: Needs[], BeginPackage[], filename
  • Previous by thread: Re: *slowing down* a Mathematica process (Dynamic/Refresh question)
  • Next by thread: Re: Possible bug in Mathematica 7 using ColorFunction