diff --git a/yli/__init__.py b/yli/__init__.py index f5754b4..7bf7c24 100644 --- a/yli/__init__.py +++ b/yli/__init__.py @@ -18,6 +18,7 @@ from .bayes_factors import bayesfactor_afbf from .config import config from .descriptives import auto_correlations, auto_descriptives from .distributions import beta_oddsratio, beta_ratio, hdi, transformed_dist +from .graphs import init_fonts from .io import pickle_read_compressed, pickle_read_encrypted, pickle_write_compressed, pickle_write_encrypted from .regress import OrdinalLogit, PenalisedLogit, logit_then_regress, regress, vif from .sig_tests import anova_oneway, auto_univariable, chi2, mannwhitney, pearsonr, spearman, ttest_ind diff --git a/yli/graphs.py b/yli/graphs.py new file mode 100644 index 0000000..9c2b7a1 --- /dev/null +++ b/yli/graphs.py @@ -0,0 +1,7 @@ +def init_fonts(): + import matplotlib.pyplot as plt + + plt.rcParams['font.family'] = 'Helvetica Neue LT Std' + plt.rcParams['text.latex.preamble'] = r'\usepackage{tgheros}\usepackage{newtxmath}' + plt.rcParams['font.size'] = 11 + plt.rcParams['figure.dpi'] = 100