Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-06-01 Thread Adam Fraser
Hi all, I updated to version 99.1.1 and I'm still getting the error "ValueError: argument must be "box", or "datalim" at set_adjustable..." from axes.py when I try to do ax.set_adjustable("box-forced") as you suggested. -Adam On Thu, May 27,

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread Adam Fraser
gt; > > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.axes > > > > > http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.html > > > > -paul > > > > > > > > From: Adam Fraser [mailto:adam.n.fra...@gmail.com] >

[Matplotlib-users] Is there a way to link axes of imshow plots?

2010-05-27 Thread Adam Fraser
Suppose I have a figure canvas with 3 plots... 2 are images of the same dimensions plotted with imshow, and the other is a scatterplot. I'd like to be able to link the x and y axes of the imshow plots so that when I zoom in one, the other zooms to the same coordinates, and when I pan in one, the ot

[Matplotlib-users] Draggable matplotlib legend

2010-01-28 Thread Adam Fraser
I thought I'd share a solution to the draggable legend problem since it took me forever to assimilate all the scattered knowledge on the mailing lists... class DraggableLegend: def __init__(self, legend): self.legend = legend self.gotLegend = False legend.figure.canvas.