Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Formatting numbers on Plot axis

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30161] Re: [mg30143] Formatting numbers on Plot axis
  • From: BobHanlon at aol.com
  • Date: Wed, 1 Aug 2001 02:19:16 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 2001/7/31 5:17:29 AM, 
oliver.friedrich at tz-mikroelektronik.de writes:

>I'm plotting a function with the Plot Command. The range is from -200*10^3
>to 200*10^3. That's also exact the way I told it the system.
>How can I tell Mathematica not to display 100000 and 200000 on the x-axis
>ticks, but rather 200*10^3 or something like 200k . What are the options
>or
>directives to tell Mathematica to format the x-axis numbers in a special
>way.
>BTW: I'm running version 3.0
>

Plot[x/1000, {x, -200*^3, 200*^3}, 
    Ticks -> {Join[
          Table[{xt, ToString[xt/1000]<>"k",
              {0.00625,0.},
              {GrayLevel[0.],
                AbsoluteThickness[0.25]}}, 
            {xt, -200*^3, 200*^3, 100*^3}], 
          Table[{xt, "",
              {0.00375,0.},
              {GrayLevel[0.],
                AbsoluteThickness[0.125]}}, 
            {xt, -200*^3, 200*^3, 100*^3}]], 
        Automatic}];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: Formatting numbers on Plot axis
  • Next by Date: GLExplorer, MathLive, Dynamic Visualization
  • Previous by thread: Re: Formatting numbers on Plot axis
  • Next by thread: GLExplorer, MathLive, Dynamic Visualization