setting only the y axis scale of a plot

11 views (last 30 days)
k h
k h on 18 Apr 2011
i want to set the scale of the y axis on a plot without setting the x, so that the scale of the x axis remains automatically determined.
i normally use the following axis([xmin xmax ymin ymax]) but of course that doesnt seem to work in this situation.
thanks in advance

Answers (1)

Patrick Kalita
Patrick Kalita on 18 Apr 2011
You can use the ylim command, or use the YLim property if you have the axes handle.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!