mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-21 13:00:14 +08:00
ENH: Use colormap for plotting lines
This commit is contained in:
@@ -64,7 +64,7 @@ def plot_series(s, colormap='Set1', axes=None):
|
||||
if geom.type == 'Polygon' or geom.type == 'MultiPolygon':
|
||||
plot_multipolygon(ax, geom, facecolor=color.next())
|
||||
elif geom.type == 'LineString':
|
||||
plot_linestring(ax, geom)
|
||||
plot_linestring(ax, geom, color=color.next())
|
||||
elif geom.type == 'Point':
|
||||
plot_point(ax, geom)
|
||||
return ax
|
||||
|
||||
Reference in New Issue
Block a user