I am trying to use matplot to graph the number of events in a specific minute generated by different inputs.
broadly similar to the screen clip below, but showing a simple 24 hour period only.
Part of my problem is that I don't know how to work with Y axis data that is not a complete set. eg, if all I have is 2 events, one at 04:04 (y=5) and one at 13:22 (y=1) how do I make that show on a graph for the full 24 hour period please?
I have been experimenting with stacked histtype=step, but I am not making any progress and can't find any examples in http://matplotlib.org/gallery.html
If there is a better plotter for this sort of output I would be happy to try that too.
Thanks
Edit: Adding example that is not quite what I want. need it to: (1). use time on the x axis (2). use time for the events (3). bars to start at 0 (4). not have that line in the middle (5). later on add different events in a different colour
import matplotlib
# Force matplotlib to not use any Xwindows backend.
matplotlib.use('Agg')
import matplotlib.pyplot as plt
a = [1,2,5,6,9,11,15,17,18]
plt.hlines(1,0,24) # Draw a horizontal line
plt.eventplot(a, orientation='horizontal', colors='b')
plt.savefig('foo.png', bbox_inches='tight')


set_xlim()(to set the 24-hour window) will help? Some simplified runnable example would be helpful.