import matplotlib.pyplot as plt
import h5py
import numpy as np
import matplotlib.image as mpimg
f = h5py.File("Spectrometer_vis_0.h5", "r")
fig = plt.figure()
gs = fig.add_gridspec(20, hspace=0)
axs = gs.subplots(sharex=True, sharey=True)
fig.set_figheight(20);fig.set_figwidth(15)
for i in range(0, 20):
axs[i].plot(f['Wavelengths'][0:], f['Spectra'][i:][0], label=i)
plt.savefig('ScreenShotAll.png')