6. 3D plots#
PolarToolkit also supports some 3D plotting. Here we will download a dataset and make a simple 3D perspective plot.
Import the necessary modules
[1]:
from polartoolkit import fetch, maps
Download a grid of Antarctic surface elevation data from REMA
[2]:
surface = fetch.rema()
Use the plot_3d function to make a perspective image.
[3]:
fig = maps.plot_3d(
grids=surface,
cmaps="earth",
exaggeration=2,
cbar_labels="surface elevation (m)",
)
fig.show(dpi=200)
For further functionality of 3D plotting, see this how-to guide