MulaiMulai sekarang secara gratis

Styling a multi-layered plot

Now we have converted both datasets to the same Coordinate Reference System, let's make a nicer plot combining the two.

The datasets in UTM coordinates as we saved them to files in the last exercise are read back in and made available as the mining_sites and national_parks variables. GeoPandas and matplotlib are already imported.

Latihan ini adalah bagian dari kursus

Working with Geospatial Data in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Plot of the parks and mining sites
ax = national_parks.plot()
mining_sites.plot(ax=ax)
plt.show()
Edit dan Jalankan Kode