Browse Source

Adds plot styling.

master
Lukas Prause 2 years ago
parent
commit
041f4d0c2c
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      plot_stacked_bandwidth.py

+ 10
- 4
plot_stacked_bandwidth.py View File



plt_params = { plt_params = {
"pgf.texsystem": "lualatex", "pgf.texsystem": "lualatex",
"legend.fontsize": "x-large",
"figure.figsize": (15, 5),
#"legend.fontsize": "x-large",
#"figure.figsize": (15, 5),
"axes.labelsize": 15, # "small", "axes.labelsize": 15, # "small",
"axes.titlesize": "x-large", "axes.titlesize": "x-large",
"xtick.labelsize": 15, # "small", "xtick.labelsize": 15, # "small",
"mathtext.fontset": "dejavusans", "mathtext.fontset": "dejavusans",
} }


plt.rcParams.update(plt_params)
#plt.rcParams.update(plt_params)

import seaborn as sns
sns.set()

plt.rcParams["figure.figsize"] = (10, 3)


if __name__ == "__main__": if __name__ == "__main__":
parser = ArgumentParser() parser = ArgumentParser()
ax = df[bw_cols].plot.area(stacked=True, linewidth=0) ax = df[bw_cols].plot.area(stacked=True, linewidth=0)
ax.set_ylabel("bandwidth [MHz]") ax.set_ylabel("bandwidth [MHz]")
ax.set_xlabel("time [minutes]") ax.set_xlabel("time [minutes]")
ax.set_xlim([0,df.index[-1]])
ax.set_xlim([0, df.index[-1]])
ax.xaxis.grid(False)




L = plt.legend() L = plt.legend()

Loading…
Cancel
Save