05-Python可视化空间数据 源代码 请看此处 %matplotlib inline import pandas as pd import geopandas import matplotlib.pyplot as plt countries = geopandas.read_file("zip://data/ne_110m_admin_0_countries.zip") cities = geopandas.read_file("zip://data/ne_110m_populated_places.zip") rivers = geopandas.read_file("zip://data/ne_50m_rivers_lake_centerlines.zip") 5.1 GeoPandas的可视化函数 基础绘图 countries.plot() <matplotlib.axes._subplots.AxesSubplot at 0x7f7e787c93c8> 调整地图大小 countries.plot(figsize=(15,15)) <matplotlib.axes._subplots.AxesSubplot at 0x7f7e764cccc0> 移除边框及x,y坐标 ax=countries.plot(figsize=(15,15)) ax.set_axis_off()