2.use the ax=ax argument in c.plot() importgeopandasasgpdimportmatplotlib.pyplotasplt %matplotlib inline figsize=5,5#fig = plt.figure(figsize=(figsize),dpi=300)#ax = fig.add_subplot(111)fig, ax = plt.subplots(1,1, figsize = (figsize)) shpfileshpfile=r'Y:\HQ\TH\Groups\NR\PSPD...
Plot multiple geolayers If you wish to display multiple geolayers, you can pass the Bokeh figure of a Pandas-Bokeh plot via the figure keyword to the next plot_bokeh() call: import geopandas as gpd import pandas_bokeh pandas_bokeh.output_notebook() # Read in GeoJSONs from URL: df_sta...
world_gdf.plot('pop_density', legend=True, figsize=figsize); Learn Data Science with RESULT:The above map doesn't look very helpful, so let's make it better by doing the following: Change to the Mercator projection since it's more familiar. Using the parameter to_crs('epsg:4326') ...
Plot multiple geolayers If you wish to display multiple geolayers, you can pass the Bokeh figure of a Pandas-Bokeh plot via the figure keyword to the next plot_bokeh() call: import geopandas as gpd import pandas_bokeh pandas_bokeh.output_notebook() # Read in GeoJSONs from URL: df_sta...