Revision: 6300
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6300&view=rev
Author:   efiring
Date:     2008-10-22 19:38:46 +0000 (Wed, 22 Oct 2008)

Log Message:
-----------
Make pyplot.twinx() and twiny() draw after creating the axes

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/pyplot.py

Modified: trunk/matplotlib/lib/matplotlib/pyplot.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/pyplot.py   2008-10-22 19:37:46 UTC (rev 
6299)
+++ trunk/matplotlib/lib/matplotlib/pyplot.py   2008-10-22 19:38:46 UTC (rev 
6300)
@@ -631,12 +631,13 @@
     the right, and the *ax2* instance is returned.
 
     .. seealso::
-       :file:`examples/pylab_examples/two_scales.py`
+       :file:`examples/api_examples/two_scales.py`
     """
     if ax is None:
         ax=gca()
+    ax1 = ax.twinx()
     draw_if_interactive()
-    return ax.twinx()
+    return ax1
 
 
 def twiny(ax=None):
@@ -647,8 +648,9 @@
     """
     if ax is None:
         ax=gca()
+    ax1 = ax.twiny()
     draw_if_interactive()
-    return ax.twiny()
+    return ax1
 
 
 


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to