{{ message }}

Instantly share code, notes, and snippets.

🏠
Working from home

# Maximilian Nöthe maxnoe

🏠
Working from home
• TU Dortmund
• Germany
Created Mar 8, 2021
Perseverance flight to Mars animated using matplotlib / astropy / astroquery
View perseverance.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Dec 5, 2019
Plot data files from https://lpsc.in2p3.fr/cosmic-rays-db without unpacking the tarball
View plot_cosmic_rays.py
 import tarfile import pandas as pd from io import TextIOWrapper import matplotlib.pyplot as plt import os import argparse parser = argparse.ArgumentParser() parser.add_argument('outputfile')
Last active Apr 21, 2021
Plotting a secondary MJD date axis with matplotlib ≥ 3.1
View plot_mjd_secondary.py
 import matplotlib.pyplot as plt import numpy as np from astropy.time import Time import astropy.units as u t = Time.now() + np.linspace(0, 30, 30) * u.day # plot something vs time normally using a list of datetimes as x values fig, ax = plt.subplots(constrained_layout=True)
Last active Aug 17, 2018
Graphic explaining the hillas features in Imaging Air Cherenkov Astronomy
 \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathtools} \usepackage{fontspec} \usepackage{xcolor} \setmainfont[BoldFont=Akkurat Office]{Akkurat Light Office} \setsansfont[BoldFont=Akkurat Office]{Akkurat Light Office} \setmonofont[BoldFont=Fira Code, Scale=MatchLowercase]{Fira Code Light} \usepackage[ math-style=ISO,
Last active Jun 21, 2018
Fitting histograms of muon lifetimes. Do not estimate weights from your data!