Notebook
%matplotlib inline from matplotlib import pyplot as plt from matplotlib.colors import LogNorm fig, ax = plt.subplots() fig.set_size_inches(10, 8) with h5py.File('./nofeedback/covering_grids/DD0099_covering_grid.h5') as f: im = ax.imshow(np.sum(f['gas/sfr_density'][:], axis=-1), norm=LogNorm()) cb = fig.colorbar(im)