7.2.9 TimeAxisPlotChart

You can specify all attributes of TimePlotChart (see 7.2.4) and TimeAxisChart (see 7.2.8). To display plot data you have to overwrite the method create_plot

create_plot( to_x)
Overwrite this method to create a plot chart. You can use any plot command defined in the pylab module of matplotlib . Use the to_x function to convert date to the correct horizontal coordinates. The following code is from the acso example:
from mathplotlib.pylab import *

class PlotAccounts(charts.TimeAxisPlotChart):
    calendar = acso_standard.calendar
    sharex = "share"

    def create_plot(self, to_x):
        dates = map(lambda t: to_x(t.end), accounts)
        revenues = map(lambda t: t.rev_value + t.dev_value + t.doc_value, accounts)
        plot(dates, revenues)
	
        for x, y in zip(dates, revenues):
            t = text(x, y, "%.02f" % y, clip_box=True)