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')
[2]:
# open resource in read mode
r = epygram.formats.resource(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')
[5]:
fig, ax = f.cartoplot(plot_method='contourf')
[6]:
fig, ax = f.cartoplot(plot_method='contour')
[7]:
fig, ax = f.cartoplot(plot_method='scatter')
[ ]: