Permalink
Browse files

Autoscale only based on visible data

  • Loading branch information...
1 parent cb9ecfc commit 22130939cec07b01c97b756b44a3b5bd1f1ee869 @ibrahima committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 matplotlib_plotter.py
View
@@ -263,7 +263,7 @@ def draw_plot(self):
# minimal/maximal value in the current display, and not
# the whole data set.
#
- ydata =[x.get_ydata() for x in self.plots.values()]
+ ydata =[x.get_ydata()[-50:] for x in self.plots.values()]
if self.ymin_control.is_auto():
ymin = round(min((map(min, ydata))), 0) - 1
else:

0 comments on commit 2213093

Please sign in to comment.