MathGroup Archive 2000

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

Search the Archive

Re: Problem with Plot and Ticks-function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23298] Re: [mg23274] Problem with Plot and Ticks-function
  • From: BobHanlon at aol.com
  • Date: Sun, 30 Apr 2000 21:13:48 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

You need to include the arguments to the call to theticks:

Plot[Sin[x], {x, 0, \[Pi]}, Ticks -> {theticks[0, Pi], Automatic}];

In a message dated 4/29/2000 10:30:16 PM, 
hans.steffani at e-technik.tu-chemnitz.de writes:

>theticks[min_, max_] := 
>  Module[{}, Print["xmin=", min, " xmax=", max]; 
>    Transpose[{Range[min + \[Pi]/4, max, \[Pi]/4], 
>        Range[min + \[Pi]/4, max, \[Pi]/4]*180/\[Pi]}]]
>
>Plot[Sin[x], {x, 0, \[Pi]}, Ticks -> {theticks, Automatic}]
>
>Produces the output
>xmin=-0.0785398, xmax=3.22013
>instead of
>xmin=0, xmax=3.14
>
>and stupid ticks at the x-Axis.
>
>How do I get correct ticks?
>



Bob

BobHanlon at aol.com


  • Prev by Date: Re: collect derivatives
  • Next by Date: Re: plot discrete spectrum
  • Previous by thread: Re: Problem with Plot and Ticks-function
  • Next by thread: FindRoot inside a loop