I am having an issue plotting after a date has been plotted. the code is the following:
import matplotlib.pyplot as plt
from matplotlib import style
x = [735412.0, 735503.0, 735594.0, 735685.0]
y =['0.0', '16961000000.0', '29030000000.0', '32504000000.0']
z = ['100000', '200000000000', '3000000000000', '400000000000']
# plt.plot_date(x, y, marker='o', linestyle='-', color='b')
plt.plot(y,z) # this does not print if above line is uncommented
plt.gcf().autofmt_xdate() # turns bottom dates at angle
plt.show()
What am I doing wrong? Thanks! L
plot_date()will expect the first argument to be a list of datetime objects.xare interpreted somehow as dates (hours since some reference or so, I am sure).