Mathematica - Problem with axes

  • Mathematica
  • Thread starter LouisPhilippe
  • Start date
  • #1
Hi,

I have just started working with mathematica and I am making a few manipulable plots of differential equations. The problem is that when I use the slider to change the value of certain parameters, the size of both axes change along, which makes it difficult to compare graphs.

I would like to have my axes "fixed", meaning they cut eachother in coordinate (0,0) and preferably also with a fixed scaling (for example x-axis range from 0 to 10 and y-axis range from 0 to 5)

I don't think this should be too hard but I've spent quite some time looking for this in the help documents, but I just can't seem to find it!

Help would be greatly appreciated!

Louis-Philippe
 

Answers and Replies

  • #2
1,069
29
Try adding a PlotRange option to your Plot

Plot[x^3, {x, 0, 2}, PlotRange -> {{0, 10}, {0, 5}}]

and see if this fixes your problem
 
  • #3
313
1
Also the option http://reference.wolfram.com/mathematica/ref/AxesOrigin.html" [Broken].
 
Last edited by a moderator:
  • #4
The combination of the two fixed my problem perfectly,

Thanks for your help!

Louis-Philippe
 

Related Threads on Mathematica - Problem with axes

Replies
1
Views
4K
Replies
2
Views
2K
Replies
2
Views
4K
Replies
5
Views
6K
Replies
6
Views
2K
Replies
6
Views
16K
Replies
2
Views
3K
Replies
1
Views
737
Replies
20
Views
6K
Replies
3
Views
2K
Top