使用python osmnx模块时出错,无法绘制示意图和街道网络

使用python osmnx模块时出错,无法绘制示意图和街道网络,python,osmnx,Python,Osmnx,我使用osmnx python模块绘制街道网络(艺术目的)。 我同意github Exept N10上给出的大多数示例,在同一个图上绘制足迹和街道网络 我从粘贴以下代码开始: import osmnx as ox ox.config(log_console=True, use_cache=True) ox.__version__ # helper function to get one-square-mile street networks, building footprints, and

我使用osmnx python模块绘制街道网络(艺术目的)。 我同意github Exept N10上给出的大多数示例,在同一个图上绘制足迹和街道网络

我从粘贴以下代码开始:

import osmnx as ox

ox.config(log_console=True, use_cache=True)
ox.__version__

# helper function to get one-square-mile street networks, building footprints, and plot them
def make_plot(place, point, network_type='drive', bldg_color='orange', dpi=40,dist=805, default_width=1, street_widths=None):
    gdf = ox.footprints.footprints_from_point(point=point, distance=dist)
    fig, ax = ox.plot_figure_ground(point=point, dist=dist, 
                                    network_type=network_type, 
                                    default_width=default_width,
                                    street_widths=street_widths,
                                    edge_color='black',
                                    save=False, show=False, close=True)
    fig,ax = ox.footprints.plot_footprints(gdf, fig=fig, ax=ax, color=bldg_color, set_bounds=False,
                                save=False, show=True, close=True, filename=place, dpi=dpi)

place = 'portland_buildings'
point = (45.517309, -122.682138)
make_plot(place, point)
我收到以下错误消息:

_tkinter.TclError: invalid command name "pyimage2"
它似乎来自第二个
fig,ax
声明中的参数(确切地说是参数fig=fig,ax=ax)

我将vscode与python 3.8.2解释器一起使用

如何修复此错误