SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 3913
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3913&view=rev
Author: mdboom
Date: 2007年10月04日 10:22:01 -0700 (2007年10月04日)
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /