I try to save scatter plots created with a for loop:
for i in df["Canal de distribution"].unique():
fig, ax = plt.subplots(figsize=(10,7))
ax.scatter(df[df["Canal de distribution"]==str(i)]["date"],df[df["Canal de distribution"]==str(i)]["Prix"],alpha=.7)
fig.savefig("distribution données canal : {} .png".format(i), transparent=False, dpi=300,bbox_inches='tight', facecolor=(1,1,1,0))
plt.show()
The graphs are created but nothing is saved. Any idea what I am missing ?
EDIT: I noticed a filed saved under the name "distribution données canal " (same as in savefig) but without any extension and just one, weird weird
print(os.getcwd()).