Adds plot styling.
This commit is contained in:
@@ -9,8 +9,8 @@ import matplotlib.pyplot as plt
|
|||||||
|
|
||||||
plt_params = {
|
plt_params = {
|
||||||
"pgf.texsystem": "lualatex",
|
"pgf.texsystem": "lualatex",
|
||||||
"legend.fontsize": "x-large",
|
#"legend.fontsize": "x-large",
|
||||||
"figure.figsize": (15, 5),
|
#"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",
|
||||||
@@ -20,7 +20,12 @@ plt_params = {
|
|||||||
"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()
|
||||||
@@ -71,7 +76,8 @@ if __name__ == "__main__":
|
|||||||
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user