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
to_x) |
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)