Plotting methods: cf. matplotlib’s according methods and doc

[1]:
%matplotlib inline
# for figures in notebook

# import & initialize epygram
import epygram
epygram.init_env()

import os
INPUTS_DIR = os.path.join('..', 'inputs')
# [2025/01/16-17:38:33][epygram.formats][<module>:0072][INFO]: Format: HDF5SAF is deactivated at runtime (Error: No module named 'h5py'). Please deactivate from config.implemented_formats or fix error.
[2]:
# open resource in read mode
r = epygram.open(os.path.join(INPUTS_DIR, 'ic.full-surfex.corsica-02km50.fa'), 'r')
[3]:
f = r.readfield('X001TG1')
[4]:
fig, ax = f.cartoplot(plot_method='pcolormesh')
../../_images/gallery_A.1-H2D_plots_02.plot_methods_4_0.png
[5]:
fig, ax = f.cartoplot(plot_method='contourf')
../../_images/gallery_A.1-H2D_plots_02.plot_methods_5_0.png
[6]:
fig, ax = f.cartoplot(plot_method='contour')
../../_images/gallery_A.1-H2D_plots_02.plot_methods_6_0.png
[7]:
fig, ax = f.cartoplot(plot_method='scatter')
/home/mary/venvs/epygram/lib/python3.10/site-packages/matplotlib/cbook.py:1762: UserWarning: Warning: converting a masked element to nan.
  return math.isfinite(val)
../../_images/gallery_A.1-H2D_plots_02.plot_methods_7_1.png
[ ]: