Hi,
In the following script, it seems to me, that GridSpec does not work as expected. ---------------------------------------- #!/usr/bin/env python # vim: set fileencoding=utf-8 : # adapted from http://matplotlib.sourceforge.net/users/gridspec.html import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec fig = plt.figure() gs1 = GridSpec(3,3) gs1.update( left=0.10, right=0.45 ) ax1 = fig.add_subplot( gs1[ 0:1, 0:1 ] ) ax1.set_position( [0.1, 0.1, 0.2, 0.8] ) gs2 = GridSpec(3,3) gs2.update( left=0.55, right=0.95 ) ax2 = fig.add_subplot( gs2[ 1:3, 1:3 ] ) ax2.set_position( [0.5, 0.1, 0.2, 0.8] ) plt.show() ---------------------------------------- First I put an Axes ax1 with gs1. For some reason, I want to adjust ax1 with ax1.set_position. (In the real application only fine adjust) If I run the script only to this point it works as expected. Next I put another Axes ax2 with a new GridSpec gs2. With the command gs2.update() the Axes ax1 will be put back to the place where it would be without ax1.set_position(). Is this behavior to be explained? Thanks -- Kurt Mueller ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users