I am plotting time-series 1-minute cadence data for specific multiple-day validation periods.
Sometimes the data have a gap between the start of the validation period and the start of the data. Attached is a stand-alone Python script that demonstrates the problem, along with the plot that the script produces.
April 20 is the start of the validation period. I want 04-20 to appear at the plot origin. This does not happen unless either the model or observed dictionary contain a key/value pair for 1998,4,20,0.
I tried adding datetime(1998,4,20,0):None to one or both dictionaries, but it is ignored.
Also the minor tick marks do not look right, especially the ones just to the right of each x-axis label.
Do you have any suggestions?
I am working on a Windows PC; O/S is Windows XP Professional, Version 2002, Service Pack 3.
I am running matplotlib, version '0.99.0' which I obtained from the matplotlib Sourceforge site.
I have not customized matplotlibrc.
I am running python version 2.6.2.
Attached is output.txt, the result of running my script with a verbose-helpful
test_plot.py (1.85 KB)
output.txt (947 Bytes)