Commit e6057d3e authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

another try to fix latex stuff

parent 202be975
...@@ -158,17 +158,14 @@ def plot_espc(licit_dev, licit_eval, spoof_dev, spoof_eval, title='EPSC'): ...@@ -158,17 +158,14 @@ def plot_espc(licit_dev, licit_eval, spoof_dev, spoof_eval, title='EPSC'):
# plot # plot
pyplot.rc('text', usetex=True)
f, ax = pyplot.subplots(1, 1, figsize=(7, 5)) f, ax = pyplot.subplots(1, 1, figsize=(7, 5))
ln1 = ax.plot(omega, 100. * errors[4].flatten(), color='r', linestyle='dashed', label='HTER(w)') ln1 = ax.plot(omega, 100. * errors[4].flatten(), color='r', linestyle='dashed', label='HTER(w)')
ax.set_title(title) ax.set_title(title)
ax.set_xlabel('w') ax.set_xlabel('w')
ax.set_ylabel('HTER(w)') ax.set_ylabel('HTER(w)')
#ax.legend(loc=1)
ax2 = ax.twinx() ax2 = ax.twinx()
ln2 = ax2.plot(omega, 100. * errors[2].flatten(), color='b', label='IAMPR') ln2 = ax2.plot(omega, 100. * errors[2].flatten(), color='b', label='IAMPR')
ax2.set_ylabel('IAMPR') ax2.set_ylabel('IAMPR')
#ax2.legend(loc=2)
lns = ln1 + ln2 lns = ln1 + ln2
labs = [l.get_label() for l in lns] labs = [l.get_label() for l in lns]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment