Reduce whitespace around ims and use green for regression line
This commit is contained in:
parent
76d890980c
commit
a6325468ca
2
plot.py
2
plot.py
@ -13,7 +13,7 @@ def main(folder: str = "plots"):
|
|||||||
timestamp = timestamp.replace(":", "-")
|
timestamp = timestamp.replace(":", "-")
|
||||||
plot_df = create_plot_df(datetime.datetime.now(), _df_state)
|
plot_df = create_plot_df(datetime.datetime.now(), _df_state)
|
||||||
print(plot_df.sum(1))
|
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__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@ -86,7 +86,7 @@ def main():
|
|||||||
date_range,
|
date_range,
|
||||||
vals,
|
vals,
|
||||||
label=f"Lineare Regression ($R^2={reg.rvalue**2:.3f}$)",
|
label=f"Lineare Regression ($R^2={reg.rvalue**2:.3f}$)",
|
||||||
color="tab:blue",
|
color="tab:green",
|
||||||
zorder=1,
|
zorder=1,
|
||||||
)
|
)
|
||||||
plt.plot(
|
plt.plot(
|
||||||
@ -108,7 +108,7 @@ def main():
|
|||||||
|
|
||||||
plt.gca().set_xticks([target_time])
|
plt.gca().set_xticks([target_time])
|
||||||
plt.title("Projektion Teilnahme an Digitaler Beschäftigtenbefragung")
|
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__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user