In [3]:
import osmnx as ox
from IPython.display import Image
ox.config(log_file = True, log_console = True, use_cache = True)
###设定地图大小
img_folder ='images'
extension = 'png'
size = 350
place = 'qingdao'
point =(36.067568,120.391662 )
fig, ax = ox.plot_figure_ground(point = point, filename = place, network_type = 'all', dpi = 150)
Image('{}/{}.{}'.format(img_folder, place, extension), height = size, width = size)
Out[3]: