Re: Ticks

*To*: mathgroup at smc.vnet.net*Subject*: [mg3337] Re: [mg3290] Ticks*From*: Richard Mercer <richard at seuss.math.wright.edu>*Date*: Wed, 28 Feb 1996 03:35:54 -0500*Sender*: owner-wri-mathgroup at wolfram.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. ==== [MESSAGE SEPARATOR] ====