If you really want to use ax.pcolor or ax.pcolormesh instead, you could set the facecolor parameter to 'none' and the edgecolor parameter to 'k':fig, ax = plt.subplots(1, 1)x, y = np.meshgrid(lon_grid, lat_grid)c = np.ones_like(x)ax.pcolor(x, y, c, facecolor='none', edgecolor='k')ax.set_xlim(lon_grid[0], lon_grid[-1])ax.set_ylim(lat_grid[0], lat_grid[-1])这是一个非常值得怀疑的黑客.This is a very questionable hack, though. 这篇关于如何仅使用pcolor/pcolormesh绘制网格线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-29 12:24
查看更多