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/
- Follow-Ups:
- Re: Problem with Plot and Ticks-function
- From: Jean-Marie Thomas <jmt@agat.net>
- Re: Problem with Plot and Ticks-function