我正在尝试通过matplotlib创建一个使用坐标并发布预测圆的图形。但是,线条不平滑,我如何使线条平滑,如下例所示:
当前图的图像:
代码:
lons = [-56.791596,-48.112043,-45.482310,-47.792250,-58.461660,-64.631263,-70.09809,-66.30909,-59.231434,-54.091754]
lats = [18.09,18.36,15.38,14.22,13.26,14.84,18.83,22.59,18.62,18.29]
x,y = map(lons, lats)
map.plot(x, y, color="red", linewidth=4, linestyle='-')