[scitools] push by johannes...@gmail.com - Fix issue #34 in aplotter.py. on 2015-02-24 11:59 GMT

1 view
Skip to first unread message

scit...@googlecode.com

unread,
Feb 24, 2015, 6:59:34 AM2/24/15
to scitoo...@googlegroups.com
Revision: fc815a05e064
Branch: default
Author: Johannes Ring <joh...@simula.no>
Date: Tue Feb 24 11:59:14 2015 UTC
Log: Fix issue #34 in aplotter.py.
https://code.google.com/p/scitools/source/detail?r=fc815a05e064

Modified:
/lib/scitools/aplotter.py

=======================================
--- /lib/scitools/aplotter.py Mon Jun 24 03:58:21 2013 UTC
+++ /lib/scitools/aplotter.py Tue Feb 24 11:59:14 2015 UTC
@@ -326,7 +326,10 @@

#print plot_data

- y_zero_coord = self.get_coord(0, plot_data.min_y, plot_data.y_step)
+ if plot_data.min_y < 0 and plot_data.max_y > 0:
+ y_zero_coord = self.get_coord(0, plot_data.min_y, plot_data.y_step)
+ else:
+ y_zero_coord = self.get_coord(plot_data.min_y, plot_data.min_y,
plot_data.y_step)

if plot_data.min_x < 0 and plot_data.max_x > 0:
x_zero_coord = self.get_coord(0, plot_data.min_x, plot_data.x_step)
Reply all
Reply to author
Forward
0 new messages