Does anyone know why set_aspect('equal', 'box') isn't accepted on shared axes?
I'm trying to make the following type of scenario work:
import numpy as np
from matplotlib.pyplot import figure, show
fig1 = figure()
fig2 = figure()
ax1 = fig1.add_subplot(1, 1, 1)
ax2 = fig2.add_subplot(1, 2, 1, sharex=ax1, sharey=ax1)
ax3 = fig2.add_subplot(1, 2, 2, sharex=ax2, sharey=ax2)
data = np.random.rand(50,50)
Basically, I have multiple figures with multiple subplots, all of which should be
displaying the same range. However, the different figures have different numbers
of subplots. The example above doesn't work, because once you zoom into one of
the figures, it iteratively zooms out, adjusting data limits until both figures
have their aspect ratio properly set again. I thought using 'box' might
alleviate the problem, but that's throwing an exception.
I realize making the figures have the same layout would solve the problem, I just
wasn't sure if there was another way.
Graduate Research Assistant
School of Meteorology
University of Oklahoma