Re: Graphing in Radians
- Subject: [mg2884] Re: [mg2869] Graphing in Radians
- From: jfultz (John Fultz)
- Date: 4 Jan 1996 03:59:02 -0600
- Approved: usenet@wri.com
- Distribution: local
- Newsgroups: wri.mathgroup
- Organization: Wolfram Research, Inc.
- Sender: mj at wri.com
> Hey, I'm trying to graph some trig some trig functions with
> mathematica. I've been able to graph them, but I can seem to set the
> x-axis to measure in radian. Anyone know how to do this? Also, does
> mathematica by any chance able to figure out the period for a function(or
> the amplitude for that matter).
> Thanks in advance.
> Jellling
Try loading the Graphics`Graphics` package. It defines an undocumented
function called PiScale which can be plugged into the Ticks option. For
example, you can do the following:
Needs["Graphics`Graphics`"]
Plot[Sin[x], {x, 0, 2Pi}, Ticks->{PiScale, Automatic}]
If you want finer control than this, you have to manipulate the Ticks
option per the instructions in the Mathematica book.
John Fultz
Wolfram Research, Inc.