xbitinfo.graphics.plot_bitinformation#
- xbitinfo.graphics.plot_bitinformation(bitinfo, information_filter=None, cmap='turku', crop=None)[source]#
Plot bitwise information content as in Klöwer et al. 2021 Figure 2.
Klöwer, M., Razinger, M., Dominguez, J. J., Düben, P. D., & Palmer, T. N. (2021). Compressing atmospheric data into its real information content. Nature Computational Science, 1(11), 713–724. doi: 10/gnm4jj
- Parameters:
bitinfo (
xarray.Dataset()
) – Containing the bitwise information content for each variableinformation_filter (
str
) – Filter algorithm to filter artificial information content. Defaults toNone
. Available filters are:"Gradient"
.cmap (
str
orplt.cm
) – Colormap. Defaults to"turku"
.crop (
int
) – Maximum bits to show in figure.
- Returns:
fig (
matplotlib figure
)
Example
>>> ds = xr.tutorial.load_dataset("air_temperature") >>> info_per_bit = xb.get_bitinformation(ds, dim="lon") >>> xb.plot_bitinformation(info_per_bit) <Figure size 1200x800 with 4 Axes>