fix dates
This commit is contained in:
parent
98b18da0a3
commit
3629a0670d
Binary file not shown.
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 60 KiB |
|
@ -126,7 +126,7 @@ def plot_main():
|
||||||
smooth_x = np.linspace(date2num(min(x)), date2num(max(x)), 200)
|
smooth_x = np.linspace(date2num(min(x)), date2num(max(x)), 200)
|
||||||
spline = make_interp_spline([date2num(d) for d in x], y, k=2)
|
spline = make_interp_spline([date2num(d) for d in x], y, k=2)
|
||||||
smooth_y = spline(smooth_x)
|
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.xlabel("Date")
|
||||||
plt.ylabel("PyPI downloads")
|
plt.ylabel("PyPI downloads")
|
||||||
plt.legend()
|
plt.legend()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user