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.
有没有办法在屏蔽一个愈合面具时改变被屏蔽值的颜色?有没有办法让地图更美观?现在它只是在地图上删除了值被屏蔽的灰色像素。
我使用的代码是
masked_map = np.zeros(len(vr)) masked_map[(vr > 0)] = 1 influx = (0.3*rvir)**2*rho*vr m = hp.ma(influx) m.mask = masked_map hp.mollview(hp.smoothing(m, sigma=0.1)) hp.graticule()
vr、rho 是根据 HEALpix 规则像素化的一些量。结果是