MathGroup Archive 2005

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

Search the Archive

Re: Plot axis numbers


Show[Graphics[
    First[FullGraphics@
          Block[{$DisplayFunction=Identity},
            Plot[Sin[0.2 x],{x,-10,10}]]]/.Text[0.5`,blah__]->
        Text["0.50",blah]],PlotRange->All]

or maybe

Show[Graphics[
    First[FullGraphics@
          Block[{$DisplayFunction=Identity},
            Plot[Sin[0.2 x],{x,-10,10}]]]/.Text[x_,blah__]:>
        Text[SetPrecision[x,2],blah]],PlotRange->All]

On 5/5/05, Torquil MacDonald Sørensen <torquil at frisurf.no> wrote:
> Greetings!
> 
> In short:
> How can I ensure that all numbers on the plot axes have the same number
> of digits?
> 
> If e.g. the y-axis in a plot goes from 0 to 1 in steps of 0.25, then the
>    axis numbers will be e.g 0.25 and 0.5. I want this to be 0.25 and
> 0.50. Any suggestions other than manually adjusting the numbers with the
> FrameTicks option?
> 
> - T.M.Sørensen
> (Mathematica 5)
> 
> 


-- 
Chris Chiasson
http://chrischiasson.com/
1 (810) 265-3161


  • Prev by Date: Re: Plot axis numbers
  • Next by Date: Re: Controlled evaluation of functions
  • Previous by thread: Plot axis numbers
  • Next by thread: Re: Plot axis numbers