Message Boards Message Boards

0
|
4777 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

Simple newbie question - show all 4 quadrants on Plot, to scale.

Posted 11 years ago
Hi,

I've become a little frustrated at the difficulty in displaying a plot that shows all 4 quadrants, with the x and y axis both to the exact same scale (1:1 ratio). How can I achieve this? I just want to view a full plot.
POSTED BY: Steven M
2 Replies
You can manually specify the plot range.
a = 5;
Plot[Sin[x], {x, -a, a}, PlotRange -> {{-a, a}, {-a, a}}]
Alternatively you can set the aspect ration of the graph.
Plot[Sin[x], {x, -a, a}, AspectRatio -> 1]
Not sure if this helps, could you be more speciifc?

Details and Options in the documentation of most functions include preset options; maybe there's something I missed in there that could be useful?
Good Luck. 
POSTED BY: Russell Hart
Posted 11 years ago
That's exactly what I was after Russell, thanks!

I just needed to set the x and y axis to the same scale, and the PlotRange did just that. I looked at that before but the documentation wasn't clear on which part was the x or y coordinates.

Much appreciated.
POSTED BY: Steven M
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract