In [1]:
%matplotlib notebook
In [2]:
import pylab as pl
In [3]:
import pyspeckit
twotwo = pyspeckit.Cube('gcnh3_11.fits')
oneone = pyspeckit.Cube('gcnh3_22.fits')
oneone.xarr.velocity_convention = 'radio'
twotwo.xarr.velocity_convention = 'radio'
stack = pyspeckit.CubeStack([oneone,twotwo])
stack.plot_special = pyspeckit.wrappers.fitnh3.plotter_override
stack.plot_special_kwargs = {'fignum':3, 'vrange':[-30,135]}
In [4]:
stack.mapplot(estimator=np.nanmax)
pl.figure(3)
stack.plot_spectrum(5,5)
pl.show()