mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-23 13:20:36 +08:00
DOC: fix random state in geoplot voronoi example to prevent random errors (#933)
See ResidentMario/geoplot#69: depending on how the data are subsampled, we stumble into a potential bug in geoplot. So fixing the random state with a working one to prevent this.
This commit is contained in:
@@ -74,7 +74,7 @@ geoplot.polyplot(boroughs, ax=ax)
|
||||
# using Voronoi tessellation.
|
||||
|
||||
ax = geoplot.voronoi(
|
||||
injurious_collisions.sample(1000),
|
||||
injurious_collisions.sample(1000, random_state=42),
|
||||
hue='NUMBER OF PERSONS INJURED', cmap='Reds', scheme='fisher_jenks',
|
||||
clip=boroughs.geometry,
|
||||
linewidth=0)
|
||||
|
||||
Reference in New Issue
Block a user