python等值线如何设置高度的范围和间隔 | 您所在的位置:网站首页 › 等高线取值范围 › python等值线如何设置高度的范围和间隔 |
I have trouble with matplotlib / pyplot / basemap. I plot contour lines (air pressure) on a map. I use clabel to show the value of the contour lines. But the problem is: the padding between the value and the contour line is too much. I have found the parameter "inline_spacing", which i have set to zero. But there is still to much free space. Any ideas? Python Code: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap import pygrib filename = "file.grib2" grbs = pygrib.open('/data/' + filename) grb = grbs[2] data = grb.values datac = data*0.01 lats, lons = grb.latlons() fig = plt.figure() m = Basemap(pro |
CopyRight 2018-2019 实验室设备网 版权所有 |