Skip to content

Commit

Permalink
Quick fix remove contextily (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
linogaliana committed Oct 4, 2023
1 parent a63319a commit 1c64660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/visualisation/maps.qmd
Expand Up @@ -290,7 +290,7 @@ Repartir de la carte précédente.
# 1. Ajout d'un fond de carte sur la précédente carte
ax = arrondissements.to_crs("EPSG:3857").plot(edgecolor = 'black', facecolor="none", figsize = (10,10))
compteurs.to_crs("EPSG:3857").plot(ax = ax, alpha = 0.3, color = 'red')
ctx.add_basemap(ax, source = ctx.providers.Stamen.Watercolor)
#ctx.add_basemap(ax, source = ctx.providers.Stamen.Watercolor)
ax.set_axis_off()
ax
#plt.savefig("map_arr2.png", bbox_inches='tight')
Expand All @@ -308,7 +308,7 @@ ax.get_figure()
# 2. Choix d'un fond de carte plus approprié (visualisation des grands axes)
ax = arrondissements.to_crs("EPSG:3857").plot(edgecolor = 'black', facecolor="none", figsize = (10,10))
compteurs.to_crs("EPSG:3857").plot(ax = ax, alpha = 0.3, color = 'red')
ctx.add_basemap(ax, source="https://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png")
#ctx.add_basemap(ax, source="https://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png")
ax.set_axis_off()
ax
```
Expand Down

0 comments on commit 1c64660

Please sign in to comment.