[AstroPy] getting the location of a subplot

Rose Finn rose.a.finn at gmail.com
Tue Jun 26 20:08:25 EDT 2012


Hi,

Sorry - I accidentally sent my first message before it was finished!

I am trying to use aplpy.FITSFigure() within pylab.subplots.
FITSFigure wants the [xmin,ymin,dx,dy], and I am wondering if there is
an easy to find out the top, bottom, left, and right of the subplot.

For example:

fig=figure()
fig.subplotpars.top

gives the top of the plot.

If instead I do

fig=figure()
sub=subplot(3,3,1)

Is there a similarly easy way to get the top, bottom, etc of the
current subplot?

Thanks,
Rose

-- 
Rose A. Finn, PhD
Department of Physics & Astronomy
Siena College
Loudonville, NY
(518) 782-6764



More information about the AstroPy mailing list