使用osmnx 绘制路网,找不到改变背景设置的函数
import osmnx as ox
T = ox.graph_from_point((40.011797, 116.334652), dist=1000)
ox.plot_graph(T)
想要实现官方文档中的图的效果
import osmnx as ox
T = ox.graph_from_point((40.011936, 116.334114), dist=1000)
ox.plot_graph(T, bgcolor='#ffffff', node_color='#000000') # bgcolor背景颜色,node_color节点颜色,需输入RGBA值改变