Sunday, 11 August 2013

How to automatically set ylim from data shown on the screen after setting xlim

How to automatically set ylim from data shown on the screen after setting
xlim

For example, after I set xlim, the ylim is wider than the range of data
points shown on the screen. Of course, I can manually pick a range and set
it, but I would prefer if it is done automatically.
Or, at least, how can we determine y-range of data points shown on screen?
plot right after I set xlim:
plot after I manually set ylim:

No comments:

Post a Comment