MathGroup Archive 2000

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

Search the Archive

Problem with Plot and Ticks-function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23274] Problem with Plot and Ticks-function
  • From: hans.steffani at e-technik.tu-chemnitz.de (Hans Friedrich Steffani)
  • Date: Sat, 29 Apr 2000 22:05:17 -0400 (EDT)
  • Organization: Chemnitz University of Technology
  • Sender: owner-wri-mathgroup at wolfram.com

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?

Hans Friedrich Steffani



-- 
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
mailto:hans.steffani at e-technik.tu-chemnitz.de
http://www.tu-chemnitz.de/~hfst/


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