Skip to content

Commit ffe2f7e

Browse files
committed
Updates to units
1 parent 8a51489 commit ffe2f7e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

py/plot_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def get_fit_from_result(location,result_name,corr_type):
363363
fit['xi_grid'] = ff['LYA(LYA)xLYA(LYA)/fit'][...]
364364
elif corr_type == 'xcf':
365365
fit['xi_grid'] = ff['LYA(LYA)xQSO/fit'][...]
366-
366+
367367
ff.close()
368368

369369
return fit
@@ -444,12 +444,12 @@ def plot_wedges(ax,plot_info):
444444

445445
#Add axis labels.
446446
if plot_info['format']['xlabel']:
447-
ax.set_xlabel(r'$r\ [Mpc/h]$')
447+
ax.set_xlabel(r'$r\ [\mathrm{{Mpc}}/h]$')
448448
if plot_info['format']['ylabel']:
449449
if plot_info['plot_data']['r_power'] > 1:
450-
ax.set_ylabel(r'$r^{} \xi (r)\ [(Mpc/h)^{}]$'.format(int(plot_info['plot_data']['r_power']),int(plot_info['plot_data']['r_power'])))
450+
ax.set_ylabel(r'$r^{:d}\ \xi (r)\ [(\mathrm{{Mpc}}\ h^{{-1}})^{{{:d}}}]$'.format(int(plot_info['plot_data']['r_power']),int(plot_info['plot_data']['r_power'])))
451451
elif plot_info['plot_data']['r_power'] == 1:
452-
ax.set_ylabel(r'$r\xi (r)\ [Mpc/h]$')
452+
ax.set_ylabel(r'$r\ \xi (r)\ [\mathrm{{Mpc}}\ h^{{-1}}]$')
453453
elif plot_info['plot_data']['r_power'] == 0:
454454
ax.set_ylabel(r'$\xi (r)$')
455455

0 commit comments

Comments
 (0)