Re: Ticks
- Subject: [mg3310] Re: Ticks
- From: ianc (Ian Collier)
- Date: 26 Feb 1996 10:07:41 -0600
- Approved: usenet@wri.com
- Distribution: local
- Newsgroups: wri.mathgroup
- Organization: Wolfram Research, Inc.
- Sender: daemon at wri.com
In article <4gi63g$jkv at dragonfly.wolfram.com>, "FARNOOD, Ramin" <FARNOOD at paprican.ca> wrote: > 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. > > Any help is appreciated. > Use FrameTicks not Ticks and it will work as intended. In[7]:= bp= Plot[BesselJ[2,x],{x,0,10}]; In[8]:= Show[bp, Frame->True, FrameTicks->{{0,Pi,2Pi,3Pi},Automatic}] Out[8]= -Graphics- I hope this helps. --Ian ----------------------------------------------------------- Ian Collier Wolfram Research, Inc. ----------------------------------------------------------- tel:(217) 398-0700 fax:(217) 398-0747 ianc at wolfram.com Wolfram Research Home Page: http://www.wolfram.com/ -----------------------------------------------------------