How to force a (small) gap on axis
24 views (last 30 days)
Show older comments
Hi,
when I plot data with values from -1 to 1, the y-axis ranges from -1 to 1, resulting in the graph reaching the top and bottom of the plot, which looks bad.
If my values range from -pi to pi, the axis will go from -4 to 4, resulting in the graph not reaching the top and bottom, which looks much better.
Is there a way to switch to a mode where there is always a (small) gap?
I know I can define the min/max of the axis, but I don't want to do it manually for each plot or define a formula on my own.
Many thanks!
0 Comments
Answers (2)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!