MathGroup Archive 2002

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

Search the Archive

RE: how: suppressing digits (tick marks)?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34606] RE: [mg34562] how: suppressing digits (tick marks)?
  • From: "Annetts, Dave (E&M, North Ryde)" <David.Annetts at csiro.au>
  • Date: Wed, 29 May 2002 02:46:39 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Harald,

> using a plotrange from -0.03 to 0.02 I receive for example:
> 
> -0.03  | -0.02 | -0.01 | 1.73472 10 -18 | 0.01 | 0.02
> 
> How can I force Mathematica marking the tick to be at 
> position 0.00 and not at
> 10^-18 ?

Interesting that it should put a tick at 1.7E-18 ....  What were you trying
to plot?  

However, you can force Mathematica to put ticks where you want by manually
specifying them.  

Define 

basicTickLen = .005;  (* experiment with this for best results ...*)

then you can have labels at 
myLabeledTicks = {#, ToString[#], {basicTickLen, 0}}& /@ Range[-.03, .02,
.01];

unlabelled ticks at
myUnLabeledTicks = {#, "", {basicTickLen, 0}} & /@ Range[-.03, .02, .001];

Use them both by forming
myTicks = Join[myLabeledTicks, myUnLabeledTicks];

and 
Plot[Sin[x]/x, {x, -.03, .02}, 
    FrameTicks -> {myTicks, Automatic, Automatic, None}];

Regards,

Dave.
--------------------------------------------------------
  Dr. David Annetts             EM Modelling Analyst
  Tel: (+612) 9490 5416         CSIRO DEM, North Ryde
  Fax: (+612) 9490 5467         David.Annetts at csiro.au
                 Include "usual_disclaimers"
--------------------------------------------------------



  • Prev by Date: How write or Export a Cell holding a Matrix in //MatrixForm format to an external File
  • Next by Date: RE: basic operations in matrices
  • Previous by thread: how: suppressing digits (tick marks)?
  • Next by thread: Polar diagram contour plots?