You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
The plotting library doesn't seem to work when I try and plot a datetime object. It can handle just dates but when there is an associated time the plot builds without error but no line is plotted.
Code here that doesn't work:
import pandas as pd
import matplotlib.pyplot as plt
import pdvega
rng = pd.date_range('1/1/2011', periods=72, freq='H')
rng = [pd.Timestamp(r) for r in rng]
ts = pd.Series(np.random.randn(len(rng)), index=rng)
ts.vgplot.line() #this doesn't throw any errors but no data is shown
ts.plot() #this works on the other hand
plt.show()
The text was updated successfully, but these errors were encountered:
The plotting library doesn't seem to work when I try and plot a datetime object. It can handle just dates but when there is an associated time the plot builds without error but no line is plotted.
Code here that doesn't work:
import pandas as pd
import matplotlib.pyplot as plt
import pdvega
rng = pd.date_range('1/1/2011', periods=72, freq='H')
rng = [pd.Timestamp(r) for r in rng]
ts = pd.Series(np.random.randn(len(rng)), index=rng)
ts.vgplot.line() #this doesn't throw any errors but no data is shown
ts.plot() #this works on the other hand
plt.show()
The text was updated successfully, but these errors were encountered: