applied-econometrics-2024/scripts/sample_report.py
2024-12-29 18:42:48 +01:00

16 lines
No EOL
403 B
Python

import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
iris = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv')
_ = plt.hist(iris["petal_length"])
matplotlib.use("pgf")
matplotlib.rcParams.update({
"pgf.texsystem": "pdflatex",
'font.family': 'serif',
'text.usetex': True,
'pgf.rcfonts': False,
})
plt.savefig("../figures/sample.pgf")