Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg30161] Re: [mg30143] Formatting numbers on Plot axis
  • From: BobHanlon at
  • Date: Wed, 1 Aug 2001 02:19:16 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In a message dated 2001/7/31 5:17:29 AM, 
oliver.friedrich at 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
>directives to tell Mathematica to format the x-axis numbers in a special
>BTW: I'm running version 3.0

Plot[x/1000, {x, -200*^3, 200*^3}, 
    Ticks -> {Join[
          Table[{xt, ToString[xt/1000]<>"k",
            {xt, -200*^3, 200*^3, 100*^3}], 
          Table[{xt, "",
            {xt, -200*^3, 200*^3, 100*^3}]], 

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