Revision: 4658
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4658&view=rev
Author: dsdale
Date: 2007-12-06 14:28:27 -0800 (Thu, 06 Dec 2007)
Log Message:
-----------
let widgets.Cursor initialize to the lower x and y bounds
rather than 0,0, which can cause havoc for dates and other
transforms
Modified Paths:
--------------
trunk/matplotlib/CHANGELOG
trunk/matplotlib/lib/matplotlib/widgets.py
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG 2007-12-06 21:51:12 UTC (rev 4657)
+++ trunk/matplotlib/CHANGELOG 2007-12-06 22:28:27 UTC (rev 4658)
@@ -1,3 +1,7 @@
+2007-12-06 let widgets.Cursor initialize to the lower x and y bounds
+ rather than 0,0, which can cause havoc for dates and other
+ transforms - DSD
+
2007-12-06 updated references to mpl data directories for py2exe - DSD
2007-12-06 fixed a bug in rcsetup, see bug 1845057 - DSD
Modified: trunk/matplotlib/lib/matplotlib/widgets.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/widgets.py 2007-12-06 21:51:12 UTC (rev
4657)
+++ trunk/matplotlib/lib/matplotlib/widgets.py 2007-12-06 22:28:27 UTC (rev
4658)
@@ -662,8 +662,8 @@
self.vertOn = True
self.useblit = useblit
- self.lineh = ax.axhline(0, visible=False, **lineprops)
- self.linev = ax.axvline(0, visible=False, **lineprops)
+ self.lineh = ax.axhline(ax.get_ybound()[0], visible=False, **lineprops)
+ self.linev = ax.axvline(ax.get_xbound()[0], visible=False, **lineprops)
self.background = None
self.needclear = False
@@ -1070,11 +1070,11 @@
# If RectangleSelector is not active :
if not self.active:
return True
-
+
# If canvas was locked
if not self.canvas.widgetlock.available(self):
return True
-
+
# If no button was pressed yet ignore the event if it was out
# of the axes
if self.eventpress == None:
@@ -1174,7 +1174,7 @@
def get_active(self):
""" to get status of active mode (boolean variable)"""
- return self.active
+ return self.active
class Lasso(Widget):
def __init__(self, ax, xy, callback=None, useblit=True):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins