Hi, 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) ax1.set_aspect('equal', 'datalim') ax2 = fig2.add_subplot(1, 2, 1, sharex=ax1, sharey=ax1) ax2.set_aspect('equal', 'datalim') ax3 = fig2.add_subplot(1, 2, 2, sharex=ax2, sharey=ax2) data = np.random.rand(50,50) ax1.pcolormesh(data) ax2.pcolormesh(data) ax3.pcolormesh(data) show() 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. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel