python - Plot empty DataFrame -
can force empty dataframe plot? i'm filling xlim
, yticks
, don't see why should not possible.
>>> df empty dataframe columns: [time, ch, 0] index: [] >>> df.plot(x="time", y="ch", ax=ax, ... xlim=(start, end), yticks=range(ymin, ymax+1)) ... typeerror: empty 'dataframe': no numeric data plot
also tried plot using matplotlib.pyplot
, ends keyerror
if pass ax
.
>>> plt.plot() >>> plt.axes(ax) ... keyerror: <matplotlib.axes._subplots.axessubplot object @ 0x00000000060e6be0>
Comments
Post a Comment