0

I know I can create subplots with a shared axis with something like

import matplotlib.pyplot as plt
ax0 = plt.subplot(1,2,1)
ax1 = plt.subplot(1,2,2, sharex=ax0)

But, is there any way to share axes after ax1 was created? Something like

ax0 = plt.subplot(1,2,1)
ax1 = plt.subplot(1,2,2)

ax1.some_function(sharex=ax0)
OneCricketeer
  • 151,199
  • 17
  • 111
  • 216
vagoberto
  • 2,291
  • 19
  • 29

0 Answers0