Mathematica Mathematica - Problem with axes

  • Thread starter Thread starter LouisPhilippe
  • Start date Start date
  • Tags Tags
    Axes Mathematica
AI Thread Summary
The discussion revolves around the use of Mathematica for creating manipulable plots of differential equations. The user, Louis-Philippe, encounters an issue where the axes resize when adjusting parameters with a slider, complicating graph comparisons. To resolve this, a suggestion is made to use the PlotRange option to set fixed ranges for the axes, specifically from 0 to 10 for the x-axis and 0 to 5 for the y-axis. Additionally, utilizing the AxesOrigin option is recommended to ensure the axes intersect at the coordinate (0,0). Implementing these options effectively addresses the resizing issue, allowing for consistent graph comparisons.
LouisPhilippe
Messages
2
Reaction score
0
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 each other 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
 
Physics news on Phys.org
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
 
Also the option http://reference.wolfram.com/mathematica/ref/AxesOrigin.html" .
 
Last edited by a moderator:
The combination of the two fixed my problem perfectly,

Thanks for your help!

Louis-Philippe
 

Similar threads

Replies
0
Views
2K
Replies
1
Views
2K
Replies
18
Views
4K
Replies
4
Views
3K
Back
Top