Procházet zdrojové kódy

Adds fancy legend.

master
Lukas Prause před 2 roky
rodič
revize
f3e155fd87
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      plot_single_transmission_EM9190.py

+ 2
- 2
plot_single_transmission_EM9190.py Zobrazit soubor

lns_ax0 = snd_plot + srtt_plot + goodput_plot lns_ax0 = snd_plot + srtt_plot + goodput_plot
labs_ax0 = [l.get_label() for l in lns_ax0] labs_ax0 = [l.get_label() for l in lns_ax0]
ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center") ax0.legend(lns_ax0, labs_ax0, ncols=9, fontsize=9, loc="upper center")
ax0.set_zoder(100)
ax0.set_zorder(100)


lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot lns_ax00 = eff_bw_plot + lte_eff_bw_plot + nr_eff_bw_plot + lte_rsrq_plot + nr_rsrq_plot
if lte_hanover_plot: if lte_hanover_plot:
lns_ax00.append(nr_hanover_plot) lns_ax00.append(nr_hanover_plot)
labs_ax00 = [l.get_label() for l in lns_ax00] labs_ax00 = [l.get_label() for l in lns_ax00]
ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center") ax00.legend(lns_ax00, labs_ax00, ncols=3, fontsize=9, loc="upper center")
ax00.set_zoder(100)
ax00.set_zorder(100)
plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight") plt.savefig("{}{}_plot.eps".format(args.save, csv.replace(".csv", "")), bbox_inches="tight")
else: else:
fig.legend(loc="lower right") fig.legend(loc="lower right")

Načítá se…
Zrušit
Uložit