fix dates

This commit is contained in:
Julien Palard 2021-11-07 21:49:34 +01:00
parent 98b18da0a3
commit 3629a0670d
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -126,7 +126,7 @@ def plot_main():
smooth_x = np.linspace(date2num(min(x)), date2num(max(x)), 200)
spline = make_interp_spline([date2num(d) for d in x], y, k=2)
smooth_y = spline(smooth_x)
plt.plot(smooth_x, smooth_y, label=version)
plt.plot_date(smooth_x, smooth_y, label=version, fmt="-")
plt.xlabel("Date")
plt.ylabel("PyPI downloads")
plt.legend()