Mathematica - Problem with axes

  • Context: Mathematica 
  • Thread starter Thread starter LouisPhilippe
  • Start date Start date
  • Tags Tags
    Axes Mathematica
Click For Summary

Discussion Overview

The discussion revolves around a problem encountered by a user in Mathematica regarding the manipulation of plots of differential equations. The user seeks to maintain fixed axes during parameter adjustments to facilitate graph comparison.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • The original poster expresses difficulty in keeping the axes fixed while using sliders to manipulate parameters in Mathematica plots.
  • One participant suggests using the PlotRange option to define the axis limits explicitly.
  • Another participant points out the AxesOrigin option as a potential solution for fixing the axes at the origin.
  • The original poster confirms that combining both suggestions resolved the issue.

Areas of Agreement / Disagreement

Contextual Notes

None noted.

Who May Find This Useful

Users of Mathematica who are working with manipulable plots and require fixed axes for better comparison of graphs.

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 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
4K