MathGroup Archive 2007

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

Search the Archive

Re: Number Formatting Along Axes

  • To: mathgroup at
  • Subject: [mg81521] Re: Number Formatting Along Axes
  • From: michael.p.croucher at
  • Date: Wed, 26 Sep 2007 06:48:11 -0400 (EDT)
  • References: <fd59bs$38o$>

On 23 Sep, 09:50, Bruce Colletti <vze26... at> wrote:
> Re 6.0.1.
> By default, y-axis values display in scientific form.  How can a user specify another format, e.g., XXXXX.XX or integer?
> Thankx.
> Bruce

Hi Bruce

The Ticks option will do what you need.  If you run the following two
commands then you will get a plot with Scientific notation in the y

data = Table[n^2, {n, 10000000, 100000000, 10000000}];

The following will use integer tick marks on the y axis

 Ticks -> {Automatic, Table[n, {n, 2*10^15, 1*10^16, 2*10^15}]}]

The following makes use of Ticks and NumberForm to output numbers with
3 digits after the decimal point

 Ticks -> {Automatic, Table[{n, NumberForm[n, {1, 3}]},
{n,2*10^15, 1*10^16, 2*10^15}]}]

Hope this helps,

  • Prev by Date: Re: making a list using table but with different increment after
  • Next by Date: Re: options for PDF export, where are they listed??
  • Previous by thread: Re: Number Formatting Along Axes
  • Next by thread: Integrate: Assumptions in double integral