python-3.x - 用 Cartopy 绘制细粒度测地线
问题描述
以下代码(从此处复制)在纽约市和新德里之间生成了一个漂亮的测地线。仔细检查后,测地线看起来并不平滑。我怎样才能使它看起来光滑?
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
ny_lon, ny_lat = -75, 43
delhi_lon, delhi_lat = 77.23, 28.61
ax = plt.axes(projection=ccrs.PlateCarree())
ax.stock_img()
plt.plot([ny_lon, delhi_lon], [ny_lat, delhi_lat],
linewidth=2, marker='o', transform=ccrs.Geodetic())
plt.tight_layout()
plt.show()
解决方案
推荐阅读
- symfony - Symfony - JMS 序列化器 - 序列化时将日期时间转换为特定时区
- c++ - 为什么打印un_ordered map和map(dictionary)的key和value会出现异常?
- android - SQL(查询)错误或缺少数据库错误
- android - 尝试使用 onSaveInstanceState() 恢复 String[][] 时出现“java.lang.NullPointerException:尝试获取空数组的长度”
- apache-spark - 如何在终端上直接提交脚本而不是使用脚本文件?
- python - python:计算在字典中写入的状态所花费的时间
- ios - UITableViewCell 布局和约束何时最终确定?
- html - DIV 包含不同数量的 div,填充和覆盖剩余空间
- sql - SQL 多表语法
- angular - Angular 6 中 npm start 或 ng serve 时的部署文件夹