Revision: 8783 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8783&view=rev Author: leejjoon Date: 2010-11-09 06:57:17 +0000 (Tue, 09 Nov 2010)
Log Message: ----------- fix pylab_examples/axes_zoom_effect.py Modified Paths: -------------- trunk/matplotlib/examples/pylab_examples/axes_zoom_effect.py Modified: trunk/matplotlib/examples/pylab_examples/axes_zoom_effect.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/axes_zoom_effect.py 2010-11-09 06:56:49 UTC (rev 8782) +++ trunk/matplotlib/examples/pylab_examples/axes_zoom_effect.py 2010-11-09 06:57:17 UTC (rev 8783) @@ -100,21 +100,19 @@ return c1, c2, bbox_patch1, bbox_patch2, p -if __name__ == "__main__": - import matplotlib.pyplot as plt +import matplotlib.pyplot as plt - plt.figure(1, figsize=(5,5)) - ax1 = plt.subplot(221) - ax2 = plt.subplot(212) - ax2.set_xlim(0, 1) - ax2.set_xlim(0, 5) - zoom_effect01(ax1, ax2, 0.2, 0.8) +plt.figure(1, figsize=(5,5)) +ax1 = plt.subplot(221) +ax2 = plt.subplot(212) +ax2.set_xlim(0, 1) +ax2.set_xlim(0, 5) +zoom_effect01(ax1, ax2, 0.2, 0.8) - ax1 = plt.subplot(222) - ax1.set_xlim(2, 3) - ax2.set_xlim(0, 5) - zoom_effect02(ax1, ax2) +ax1 = plt.subplot(222) +ax1.set_xlim(2, 3) +ax2.set_xlim(0, 5) +zoom_effect02(ax1, ax2) - plt.show() - +plt.show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins