MathGroup Archive 2006

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

Search the Archive

Labelled ticks at the origin

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70840] Labelled ticks at the origin
  • From: AES <siegman at stanford.edu>
  • Date: Sat, 28 Oct 2006 23:38:53 -0400 (EDT)
  • Organization: Stanford University

Many of us have noted, and even discussed on this group, Mathematica's 
inexplicable -- or is it just obstinate? -- refusal to put labelled Tick 
marks at the origin, even when there's plenty of room for them and no 
interfering axis in the way, or even an explicit request to do so, e.g.

   PlotRange->{{0, 1}, {-2.1, 2.1}};
   Ticks->{{0.5, 1.0}, {-2, -1, 0, 1, 2}};

This note is just to put on record a minor gimmick that most Mathematica 
experts probably already know:  if you convert the second line to

   Ticks->{{0.5, 1.0}, {-2, -1, {0.001,"0"}, 1, 2}};

you'll get just what you want (unless of course Mathematica decides to 
strike back at you in some hidden way elsewhere as punishment for your  
sneaking around its rigid rules and regulations).


  • Prev by Date: Re: Searching for a function
  • Next by Date: Re: Searching for a function
  • Previous by thread: Re: SurfaceColor
  • Next by thread: Why all the if's the answer (revised!!!)