MathGroup Archive 1996

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

Search the Archive

Re: Ticks

  • To: mathgroup at
  • Subject: [mg3336] Re: [mg3290] Ticks
  • From: Richard Mercer <richard at>
  • Date: Wed, 28 Feb 1996 03:35:43 -0500
  • Sender: owner-wri-mathgroup at


What you probably want is
Show[bp, FrameTicks->{{0,Pi,2Pi,3Pi},Automatic},

which works just fine. If you really want ordinary ticks on an ordinary  
axis along with your frame, you can use

Show[bp, Axes->True,Ticks->{{0,Pi,2Pi,3Pi},Automatic},

When you set Frame->True, Mathematica automatically sets Axes->False  
unless you countermand it, thereby turning off both Axes and Ticks  
(this is reasonable). It also prevents you from using ticks on both  
axes and frames, even if you specifically request it, as in

Show[bp, Axes->True,Ticks->{{0,Pi,2Pi,3Pi},Automatic},

In this case, only the FrameTicks are displayed. This "feature" is not  
desirable; it would be better to give the user control, allowing the  
use of both if the user requests it.

Richard Mercer

>  I cannot get the Ticks option working on my PC if the
>  Frame->True option is used.  Is this a bug?

>  I am using Mathematica 2.2.3, on windows 3.1.  I used
>  the example given on page 420 of the Stephen Wolfram's
>  Mathematica: A System ...

>     bp= Plot[BesselJ[2,x],{x,0,10}]; Show[bp,
>     Ticks->{{0,Pi,2Pi,3Pi},Automatic}]

>  This works fine, but:

>      Show[bp, Ticks->{{0,Pi,2Pi,3Pi},Automatic},
>      Frame->True]

>  this graph has the default ticks not the user defined
>  values i.e. {0,Pi,2Pi,3Pi}!  It seems Frame option
>  disables the user defined Ticks.


  • Prev by Date: Re: Ticks
  • Next by Date: Re: Ticks
  • Previous by thread: Re: Ticks
  • Next by thread: Re: Ticks