From ad8c6f7fbcc1f2faed68f92a88ef935110a95d3d Mon Sep 17 00:00:00 2001 From: Chentao Yang Date: Wed, 9 Nov 2022 22:06:41 +0100 Subject: [PATCH] fix x-axis ticks --- emcee/emcee_radex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/emcee/emcee_radex.py b/emcee/emcee_radex.py index 43f6670..175775e 100755 --- a/emcee/emcee_radex.py +++ b/emcee/emcee_radex.py @@ -259,6 +259,7 @@ def replot(source): ax.set_xlabel(r'$J_\mathrm{up}$',fontsize=14) ax.set_ylabel(r'$I_\mathrm{CO}\;[\mathrm{Jy\;km\;s^{-1}}]$',fontsize=14) + ax.xaxis.set_major_locator(MultipleLocator(1)) ax.legend(loc=0, prop={'size':12}, numpoints=1) fig.suptitle('$\mathrm{'+source+'}$') fig.savefig("./single/{}_SLED.pdf".format(source))