Mathematica - Problem with axes

  • Context: Mathematica 
  • Thread starter Thread starter LouisPhilippe
  • Start date Start date
  • Tags Tags
    Axes Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 6K views
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