如何改变osmnx打印背景(黑底白线转白底黑线)

问题遇到的现象和发生背景

使用osmnx 绘制路网,找不到改变背景设置的函数

问题相关代码,请勿粘贴截图
import osmnx as ox

T = ox.graph_from_point((40.011797, 116.334652), dist=1000)
ox.plot_graph(T)
运行结果及报错内容

img

我的解答思路和尝试过的方法

想要实现官方文档中的图的效果

我想要达到的结果

img


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值改变