Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 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")
这不会像我预期的那样返回图像。可能是什么问题呢?
您需要设置 IPython 以显示 matplotlib 图。
如果您使用的是 IPython 控制台
%matplotlib
如果 IPython 笔记本
%matplotlib inline