Add helper function set up graph fonts

This commit is contained in:
RunasSudo 2023-02-07 18:50:15 +11:00
parent 967b853b02
commit 17bf3cbcab
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 8 additions and 0 deletions

View File

@ -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

7
yli/graphs.py Normal file
View File

@ -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