simulation: make plot script non-interactive

This commit is contained in:
Bastian Bloessl
2015-11-30 09:40:20 -08:00
parent 0e11d51b01
commit 01d40ec00b
+1 -2
View File
@@ -13,11 +13,10 @@ pdr.encoding.cat.categories = [
"16-QAM 1/2", "16-QAM 3/4", "16-QAM 1/2", "16-QAM 3/4",
"64-QAM 2/3", "64-QAM 3/4"] "64-QAM 2/3", "64-QAM 3/4"]
a = pdr.groupby(['encoding', 'snr']) a = pdr.groupby(['encoding', 'snr'])
b = a.agg({'received': np.mean}).reset_index() b = a.agg({'received': np.mean}).reset_index()
c = b.pivot(index='snr', columns='encoding', values='received') c = b.pivot(index='snr', columns='encoding', values='received')
c.plot() c.plot()
plt.show() plt.savefig('pdr.pdf')