I want to set a 'minimum' axis limit - in other words, I want to set_ylim([0, 30]), but adding point at y = 40 would have the axis grow to accommodate it. Is there any combination of limits and autoscaling that could achieve this for me?
-
Can you post a simple self contained sample that exhibits the incorrect behavior?ditkin– ditkin2012-06-12 00:33:52 +00:00Commented Jun 12, 2012 at 0:33
-
this is what matplotlib does for me by default... (Python 2.6.5, matplotlib 0.99.1.1, Ubuntu Linux)weronika– weronika2012-06-12 03:07:26 +00:00Commented Jun 12, 2012 at 3:07
Add a comment
|
1 Answer
set_ylim(ymin=0)
Interesting, the API recently changed to bottom and top:
set_ylim(bottom=0)
although ymin and ymax are still legal.