These are the two lists:
x = [736297.48567129625, 736297.53253472224, 736297.57858796301, 736297.50894675928, 736297.55557870376]
y = [-757, -706, 385, -247, 126]
Here's my code:
import matplotlib.pyplot as plt
import matplotlib.dates as mdate
x = [736297.48567129625, 736297.53253472224, 736297.57858796301, 736297.50894675928, 736297.55557870376]
y = [-757, -706, 385, -247, 126]
plt.figure()
plt.plot_date(x, y, fmt='b-')
plt.grid(True)
plt.show()
The x list values are converted from epoch time, using mdate.epoch2num(epoch).
This is the graph I get, which is obviously not plotted chronologically:
Matplotlib improperly plotted chart
Bonus question: You can see that the time format on the x axis looks horrible. Any idea how to present it in the format yy-mm-dd-hh-ss?
Thanks to all python gurus for your assistance!
