mirror of
https://github.com/wassname/geopandas.git
synced 2026-10-03 12:31:14 +08:00
Change default alpha
This commit is contained in:
1 parent
13b5c945b5
commit
dafe10381a
1 file changed
+1
-1
+1
-1
@@ -8,7 +8,7 @@ import fiona
|
||||
from descartes.patch import PolygonPatch
|
||||
|
||||
|
||||
def _plot_polygon(ax, poly, facecolor='red', edgecolor='black', alpha=0.3):
|
||||
def _plot_polygon(ax, poly, facecolor='red', edgecolor='black', alpha=0.5):
|
||||
a = np.asarray(poly.exterior)
|
||||
# without Descartes, we could make a Patch of exterior
|
||||
ax.add_patch(PolygonPatch(poly, facecolor=facecolor, alpha=alpha))
|
||||
|
||||
Reference in new issue
Block a user