Revision: 4630
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4630&view=rev
Author:   jswhit
Date:     2007-12-05 11:28:39 -0800 (Wed, 05 Dec 2007)

Log Message:
-----------
force draw if in interactive mode (so draw() does not need to
be explicitly invoked if running in ipython)

Modified Paths:
--------------
    trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py

Modified: trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py   
2007-12-05 19:27:14 UTC (rev 4629)
+++ trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py   
2007-12-05 19:28:39 UTC (rev 4630)
@@ -16,7 +16,7 @@
 
 date2num: convert from a datetime object to a numeric time value.
 """
-from matplotlib import rcParams
+from matplotlib import rcParams, is_interactive, _pylab_helpers
 from matplotlib import __version__ as _matplotlib_version
 # check to make sure matplotlib is not too old.
 _mpl_required_version = '0.90'
@@ -2112,6 +2112,10 @@
         if self.noticks:
             ax.set_xticks([])
             ax.set_yticks([])
+        # force draw if in interactive mode.
+        if is_interactive():
+            figManager = _pylab_helpers.Gcf.get_active()
+            figManager.canvas.draw()
 
     def scatter(self, *args, **kwargs):
         """


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to