xbitinfo.graphics.plot_bitinformation
xbitinfo.graphics.plot_bitinformation#
- xbitinfo.graphics.plot_bitinformation(bitinfo, cmap='turku')[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 variablecmap (str or plt.cm) – Colormap. Defaults to
"turku"
.
- 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 1200x400 with 3 Axes>