MathGroup Archive 2003

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

Search the Archive

Re: Position of tick labels in 2D plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38808] Re: Position of tick labels in 2D plots
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Tue, 14 Jan 2003 06:10:34 -0500 (EST)
  • References: <avu01q$dcf$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Damon,

I had to use frame and frameticks to get the x-axis labels above the axis.

<< "Graphics`Graphics`"(*to get UnitScale*)

xxticks = (Append[#1,{0,0.02}]&)/@UnitScale[2,8,2];
yyticks = (Append[#1,{0,0.02}]&)/@UnitScale[-4,-1,1];

Show[Graphics[{}, PlotRange -> {{0, 10}, {-5, 0}}],
  Frame -> {False, True, True, False}, Axes -> False,
  FrameTicks -> {{}, yyticks, xxticks, {}}]

Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


"D.J. Wischik" <djw1005 at cus.cam.ac.uk> wrote in message
news:avu01q$dcf$1 at smc.vnet.net...
> I have a 2D plot, whose PlotRange is {{0,10},{-5,0}}. Since all the action
> takes place in the lower right hand quadrant, I would like the tick
> marks and the numbers on the axes to be positioned outside this quadrant:
> thus
>        2   4   6   8
>        |   |   |   |
>      ----------------
>      |
>  -2 -|
>      |
>  -4 -|
>      |
>
> I am using the Ticks option, to ensure that the tick marks are drawn
> above the x-axis and to the left of the y-axis. The tick labels for
> the y-axis are automatically drawn to the left of the y-axis, but
> those for the x-axis default to below the x-axis.
>
> How can I change this behaviour?
>
> Damon Wischik.
>




  • Prev by Date: Re: Re: successive over relaxation
  • Next by Date: Re: LaTeX and quotation marks
  • Previous by thread: Re: Position of tick labels in 2D plots
  • Next by thread: Re: Position of tick labels in 2D plots