Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Ticks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg3310] Re: Ticks
  • From: ianc (Ian Collier)
  • Date: Mon, 26 Feb 1996 02:54:13 -0500
  • Organization: Wolfram Research, Inc.
  • Sender: owner-wri-mathgroup at wolfram.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/
-----------------------------------------------------------

==== [MESSAGE SEPARATOR] ====


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