healpy - mollview command not returning plot image -


i'm new healpy , i'm trying plot following in ipython27:

import numpy np import healpy hp  nside = 32 m=np.arange(hp.nside2npix(nside)) hp.mollview(m, title="mollview image ring") 

this not return image expecting. problem?

you need setup ipython display matplotlib plots.

if using ipython console

%matplotlib 

if ipython notebook

%matplotlib inline 

Comments