0

我是 healpy 的新手,我正在尝试在 iPython27 中绘制以下内容:

import numpy as np
import healpy as hp

NSIDE = 32
m=np.arange(hp.nside2npix(NSIDE))
hp.mollview(m, title="Mollview image RING")

这不会像我预期的那样返回图像。可能是什么问题呢?

4

1 回答 1

0

您需要设置 IPython 以显示 matplotlib 图。

如果您使用的是 IPython 控制台

%matplotlib

如果 IPython 笔记本

%matplotlib inline
于 2015-04-29T02:39:49.860 回答