[Matplotlib-users] subplot inside subplot

2008-02-06 Thread Vinu Vikram
, 0.8, 0.2] rect2 = [0.1, 0.3, 0.8, 0.5] axUpper=axes(rect2) axLower=axes(rect1) axUpper.plot(x,y) axLower.plot(x,z) But how can I do this in a subplot? Thanks Vinu V -- VINU VIKRAM http://iucaa.ernet.in/~vvinuv/ - This

[Matplotlib-users] Select pixels coordinate interactively. Lasso

2008-01-25 Thread Vinu Vikram
es, (event.xdata, event.ydata), self.callback) f = pyfits.open('I_EDCSNJ1216453-1201176.fits') z = f[0].data f.close() size = z.shape[0] x = n.reshape(n.arange(size * size), (size, size)) % size x = x.astype(n.float32) y = n.reshape(n.arange(size * size), (size, size)) / size y = y.ast