Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

changing the NumberForm of Automatic Plot Ticks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90662] changing the NumberForm of Automatic Plot Ticks
  • From: Stern <nycstern at gmail.com>
  • Date: Fri, 18 Jul 2008 04:02:06 -0400 (EDT)

When using Mathematica to analyze financial problems, I often create graphs
in which the Y axis describes amounts of money. These are typically large
enough that Mathematica switches to scientific notation (that is, 2.7x10^8
rather than $270,000,000). I can force the latter with a custom Ticks
function (Table[{i,"$" <> ToString[NumberForm[i, DigitBlock -> 3,
ExponentFunction -> (Null &)], etc.) but this becomes inelegant when it's
buried inside a Manipulate call and the range and spacing of the ticks are
changing. Is there some straightforward way to change the formatting of
these tick numbers?

Thanks,

Michael Stern


  • Prev by Date: Corrupt graphics output
  • Next by Date: Re: Problem NSolve
  • Previous by thread: Re: Corrupt graphics output
  • Next by thread: Re: changing the NumberForm of Automatic Plot Ticks