You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hist(..., histtype='step') does not set ylim properly. #2061
I can confirm that if you stick in a relim() call right at the end of Axes.hist(), it fixes this bug:
self.set_autoscalex_on(_saved_autoscalex)
self.set_autoscaley_on(_saved_autoscaley)
self.relim() #<------------------HERE
self.autoscale_view()
if nx == 1:
return n[0], bins, cbook.silent_list('Patch', patches[0])
else:
return n, bins, cbook.silent_list('Lists of Patches', patches)
What I cannot confirm is that this is the best way to fix this bug. I'm not entirely clear why there is funny business going on with flipping autoscaling on and off in the hist() routine. I guess there is some updating of self.dataLim that gets missed out on, because of autoscaling being turned on and off during hist()?
Activity
mdboom commentedon May 24, 2013
Marking as 1.3.x blocker -- hopefully the fix is simple an obvious, otherwise it might not make the cutoff, of course.
dhyams commentedon May 24, 2013
I can confirm that if you stick in a relim() call right at the end of Axes.hist(), it fixes this bug:
What I cannot confirm is that this is the best way to fix this bug. I'm not entirely clear why there is funny business going on with flipping autoscaling on and off in the hist() routine. I guess there is some updating of self.dataLim that gets missed out on, because of autoscaling being turned on and off during hist()?
mdboom commentedon May 29, 2013
Fixed by #2082.