Skip to content

Commit 294b6ea

Browse files
Plot.yAxis does not exist, it is stored in Plot.labels()
1 parent 91cad1a commit 294b6ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/xspec/example_simplest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
plt.xlabel('Energy [keV]')
6969
elif Plot.xAxis == 'channel':
7070
plt.xlabel('Channel')
71-
plt.ylabel('Counts/keV (%s)' % Plot.yAxis)
71+
plt.ylabel(Plot.labels[1])
7272
plt.savefig(outputfiles_basename + 'convolved_posterior_direct.pdf', bbox_inches='tight')
7373
plt.close()
7474

@@ -90,7 +90,7 @@
9090
plt.xlabel('Energy [keV]')
9191
elif Plot.xAxis == 'channel':
9292
plt.xlabel('Channel')
93-
plt.ylabel('Counts/keV (%s)' % Plot.yAxis)
93+
plt.ylabel(Plot.labels[1])
9494
print('saving plot...')
9595
plt.legend()
9696
plt.savefig(outputfiles_basename + 'convolved_posterior.pdf', bbox_inches='tight')

0 commit comments

Comments
 (0)