Add helper function set up graph fonts
This commit is contained in:
parent
967b853b02
commit
17bf3cbcab
@ -18,6 +18,7 @@ from .bayes_factors import bayesfactor_afbf
|
|||||||
from .config import config
|
from .config import config
|
||||||
from .descriptives import auto_correlations, auto_descriptives
|
from .descriptives import auto_correlations, auto_descriptives
|
||||||
from .distributions import beta_oddsratio, beta_ratio, hdi, transformed_dist
|
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 .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 .regress import OrdinalLogit, PenalisedLogit, logit_then_regress, regress, vif
|
||||||
from .sig_tests import anova_oneway, auto_univariable, chi2, mannwhitney, pearsonr, spearman, ttest_ind
|
from .sig_tests import anova_oneway, auto_univariable, chi2, mannwhitney, pearsonr, spearman, ttest_ind
|
||||||
|
7
yli/graphs.py
Normal file
7
yli/graphs.py
Normal 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
|
Loading…
Reference in New Issue
Block a user