Labeling Axes in Mathematica: How to Define Range of Y-Axis | Tips & Tricks

  • Context: Mathematica 
  • Thread starter Thread starter adnan jahan
  • Start date Start date
  • Tags Tags
    Axes Mathematica
Click For Summary
SUMMARY

The discussion centers on labeling axes in Mathematica, specifically how to define the range of the y-axis in a plot. The user initially employs the command Plot[Re[u], {x, 0, 1}, Frame -> True] but seeks to specify the y-axis range. The solution provided by DaleSpam utilizes the PlotRange option, demonstrating the command Plot[Re[u], {x, 0, 1}, Frame -> True, PlotRange -> {{0, 1.2}, {1, -5}}] to achieve the desired outcome.

PREREQUISITES
  • Familiarity with Mathematica syntax and plotting functions
  • Understanding of the Plot function in Mathematica
  • Knowledge of the Frame option for enhancing plot presentation
  • Basic comprehension of the PlotRange option for axis scaling
NEXT STEPS
  • Explore advanced plotting techniques in Mathematica
  • Learn about customizing plot aesthetics using options like FrameLabel
  • Investigate the use of PlotRangePadding for better visual spacing
  • Study the integration of multiple plots using Show in Mathematica
USEFUL FOR

This discussion is beneficial for Mathematica users, data visualizers, and anyone looking to enhance their graphing capabilities within the software.

adnan jahan
Messages
93
Reaction score
0
Dear Fellows
I am working on Mathematica and found my graph successfully but the problem only I am having is how to label my graph,

command of my plot is

Plot [Re, {x, 0, 1}, Frame -> True]
which shows the range of x-axis but I also want to define range of my y-axis ,,,

can anybody help me in this regard..

thanks
 
Physics news on Phys.org
Use the PlotRange option.
 
Plot [Re, {x, 0, 1}, Frame -> True,PlotRange -> {{0, 1.2}, {1, -5}}]
thanks DaleSpam
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
7K