matplotlib.rc('text', usetex=True) - when uncommenting this line in first_xray_simulation it causes the future cells where we make plots to fail with error:
RuntimeError: Failed to process string with tex because latex could not be found
OS = windows