I have a very simple map (http://www.nyc.gov/html/dcp/download/bytes/nybb_15b.zip) and I have never before worked with shapefiles in any way. Can someone tell me what I need to do in order to change each borough's colour and to remove the outline? (Usually I use Python.)

The map below was made with (Geo-)Pandas. But after a few hours of research, I don't even know whether the colours could be changed with something that comes with the Anaconda package.

boros = GeoDataFrame.from_file('nybb/nybb.shp')

enter image description here

  • 4
    It is something you have to change in the rendering software (geo-pandas), since SHP files do not contain colour information. – Uffe Kousgaard Jul 1 '15 at 13:27
  • Oh, that is a quite a surprise to me right now. Thanks a lot! – user54586 Jul 1 '15 at 13:30

Geopandas plot takes a colormap parameter

The parameter is called cmap. There's an alias for it called colormap but it should not be used anymore.

GeoDataFrame.plot(column=None, cmap=None, alpha=0.5, categorical=False, legend=False, axes=None)

The pandas documentation mentions colormaps such as


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy