Revision: 3913
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3913&view=rev
Author:   mdboom
Date:     2007-10-04 10:22:01 -0700 (Thu, 04 Oct 2007)

Log Message:
-----------
Sharing axes across figures is much easier now (it is the same as
within the same figure), so this demo has been updated.

Modified Paths:
--------------
    branches/transforms/examples/shared_axis_across_figures.py

Modified: branches/transforms/examples/shared_axis_across_figures.py
===================================================================
--- branches/transforms/examples/shared_axis_across_figures.py  2007-10-04 
17:21:26 UTC (rev 3912)
+++ branches/transforms/examples/shared_axis_across_figures.py  2007-10-04 
17:22:01 UTC (rev 3913)
@@ -10,17 +10,18 @@
 fig2 = figure()
 
 ax1 = fig1.add_subplot(111)
-ax2 = fig2.add_subplot(111)
+ax2 = fig2.add_subplot(111, sharex=ax1, sharey=ax1)
 
 ax1.plot(numpy.random.rand(100), 'o')
 ax2.plot(numpy.random.rand(100), 'o')
 
-ax1.sharex_foreign(ax2)
-ax2.sharex_foreign(ax1)
+# In the latest release, it is no longer necessary to do anything
+# special to share axes across figures:
 
-ax1.sharey_foreign(ax2)
-ax2.sharey_foreign(ax1)
+# ax1.sharex_foreign(ax2)
+# ax2.sharex_foreign(ax1)
 
+# ax1.sharey_foreign(ax2)
+# ax2.sharey_foreign(ax1)
 
-
 show()


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to