def init_figures(): """ Initialize matplotlib figure support. This must be called before any calls to matplotlib or pyplot, since it calls :func:`matplotlib.rc` and :func:`matplotlib.use`. The `pdf` backend is used since the `pgf` backend causes some issues. LaTeX rendering is also enabled. """ import matplotlib matplotlib.rc('text', usetex=True) matplotlib.use("pdf") base.usepackage("float")
def init_tables(): """ Initialize table generation support, adding required LaTeX packages """ base.usepackage("tabu") base.usepackage("array") base.usepackage("booktabs")