Reduce whitespace around ims and use green for regression line

This commit is contained in:
Felix Blanke 2023-09-07 13:44:40 +02:00
parent 76d890980c
commit a6325468ca
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ def main(folder: str = "plots"):
timestamp = timestamp.replace(":", "-")
plot_df = create_plot_df(datetime.datetime.now(), _df_state)
print(plot_df.sum(1))
fig.savefig(Path(folder) / f"digital_plot_{timestamp}.png", dpi=300)
fig.savefig(Path(folder) / f"digital_plot_{timestamp}.png", dpi=300, bbox_inches='tight')
if __name__ == "__main__":

View File

@ -86,7 +86,7 @@ def main():
date_range,
vals,
label=f"Lineare Regression ($R^2={reg.rvalue**2:.3f}$)",
color="tab:blue",
color="tab:green",
zorder=1,
)
plt.plot(
@ -108,7 +108,7 @@ def main():
plt.gca().set_xticks([target_time])
plt.title("Projektion Teilnahme an Digitaler Beschäftigtenbefragung")
plt.savefig("plots/regression.png")
plt.savefig("plots/regression.png", bbox_inches='tight', dpi=300)
if __name__ == "__main__":