Histogram of field(s)ΒΆ

[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, 'ICMSHAROM+0022'), 'r')
[3]:
t90 = r.readfield('S090TEMPERATURE')
t90.sp2gp()
t2m = r.readfield('CLSTEMPERATURE')
[4]:
fig, ax = t2m.histogram(subzone='CI', bins=50)
../../_images/gallery_A.2-other_plots_04.histogram_4_0.png
[5]:
fig, ax = t2m.histogram(subzone='CI', bins=50, together_with=t90)
../../_images/gallery_A.2-other_plots_04.histogram_5_0.png
[ ]: