MathGroup Archive 1996

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

Search the Archive

Re: Ticks

  • Subject: [mg3336] Re: [mg3290] Ticks
  • From: richard at seuss.math.wright.edu (Richard Mercer)
  • Date: 28 Feb 1996 08:21:55 -0600
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com

Ramin,

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

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},
    Frame->True,FrameTicks->None]

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},
    Frame->True,FrameTicks->{{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: Q: How to force an Equal[]
  • Previous by thread: Re: Ticks
  • Next by thread: Re: Re: Ticks