Answers for "plot time series python"

-3

plot time series python

import matplotlib.pyplot as plt
import datetime
import numpy as np

x = np.array([datetime.datetime(2013, 9, 28, i, 0) for i in range(24)])
y = np.random.randint(100, size=x.shape)

plt.plot(x,y)
plt.show()
Posted by: Guest on April-23-2021

Code answers related to "plot time series python"

Python Answers by Framework

Browse Popular Code Answers by Language