diff --git a/pymule/plot.py b/pymule/plot.py index 39ce58102be87253b776dacf8f7ecc98d8c7df41..e424da033a78757c5a252d232b7431f3bfb6b650 100644 --- a/pymule/plot.py +++ b/pymule/plot.py @@ -6,6 +6,7 @@ from matplotlib import rc from colours import * from errortools import * import mpl_axes_aligner +from mule import mulify rc('text', usetex=True) @@ -156,12 +157,12 @@ def twopanel(labelx, return fig, axs -def kplot(sigma, labelx='x_e', labelsigma=None, +def kplot(sigma, labelx='$x_e$', labelsigma=None, labelknlo="$K^{(1)}$", labelknnlo="$K^{(2)}$", - show=[0,-1], showk=[1,2]): + show=[0,-1], showk=[1,2], nomule=False): if labelsigma is None: - labelsigma = r"$\D\sigma\,/\,\D " + labelx + "$" + labelsigma = r"$\D\sigma$" kwargs = { "labelx": labelx, @@ -228,4 +229,6 @@ def kplot(sigma, labelx='x_e', labelsigma=None, axs[1].axhline(1, color='black', linewidth=1, zorder=1) + if not nomule: + mulify(fig) return fig, axs