我正在尝试使用OSMNX包的函数plot\u graph\u route()解决在绘图中增加图形大小(或至少导出较大的图形大小)的问题。这是我目前用Python编写的代码
import osmnx as ox
import matplotlib.pyplot as plt
G = ox.graph_from_point(center_point = (30.657000, 104.066002), dist = 10000, dist_type = 'bbox', network_type = 'drive')
route1 = nx.astar_path(G=G, source=3541376411, target=1500638653)
route2 = nx.astar_path(G=G, source=5502368091, target=2956775232)
routes = [route1, route2]
rc = ['r', 'b']
fig, ax = ox.plot_graph_routes(G, routes, route_colors=rc, node_size=0)
任何帮助都会很好
目前没有回答
相关问题 更多 >
编程相关推荐