From ade2300f8063ca06a4449e1bb1e0bd65b3b05ed7 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 25 Jan 2017 15:34:43 -0800 Subject: [PATCH] Remove `sharex_foreign` example, now useless. `sharex_foreign` has been removed in 2007 (0db017f). --- .../shared_axis_across_figures.py | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 examples/pylab_examples/shared_axis_across_figures.py diff --git a/examples/pylab_examples/shared_axis_across_figures.py b/examples/pylab_examples/shared_axis_across_figures.py deleted file mode 100644 index a86a5c57dd44..000000000000 --- a/examples/pylab_examples/shared_axis_across_figures.py +++ /dev/null @@ -1,31 +0,0 @@ -""" -connect the data limits on the axes in one figure with the axes in -another. This is not the right way to do this for two axes in the -same figure -- use the sharex and sharey property in that case -""" -import numpy as np -import matplotlib.pyplot as plt - -fig1 = plt.figure() -fig2 = plt.figure() - -ax1 = fig1.add_subplot(111) -ax2 = fig2.add_subplot(111, sharex=ax1, sharey=ax1) - -# Fixing random state for reproducibility -np.random.seed(19680801) - - -ax1.plot(np.random.rand(100), 'o') -ax2.plot(np.random.rand(100), 'o') - -# In the latest release, it is no longer necessary to do anything -# special to share axes across figures: - -# ax1.sharex_foreign(ax2) -# ax2.sharex_foreign(ax1) - -# ax1.sharey_foreign(ax2) -# ax2.sharey_foreign(ax1) - -plt.show()