3

When plotting a shapefile with Geopandas, I need to make the features transparent. When applying an alpha parameter, some of the features become less transparent than others.

fig = plt.figure(figsize = (8.5,11))
ax =fig.add_axes([0.05,0.15,.9,.8])

mapDF = gpd.read_file('hydrography.shp')

mapDF.plot(color=('steelblue'), ax=ax, alpha=0.5)

I expected all the features to have uniform transparency, but some features are noticeably more transparent than others. There is nothing different about those features.

Please click here to see what I am describing.

Does anyone know a way to fix this? Thank you.

etotheipi
  • 771
  • 9
  • 12

1 Answers1

3

As swatchai had suggested, my shapefile had multiple features stacked upon one another; thus the transparency was reduced. I deleted the overlapping features, and the problem was solved.

etotheipi
  • 771
  • 9
  • 12