A Simple Report

import ardi.util.mplreport

@mplreport.ardireport("Sample Report")
def CreateReport(report,args):    

   #Set up the report page
   fig,ax = report.CreatePage(1)
   report.Title()

   #Fetch the report data
   thedata = report.FetchHistory("'Temperature' PROPERTYEX ALLPOINTS")   
   frame = thedata.data

   #Draw the lines
   for colname in frame.columns:
        ax.plot(frame[colname],label=colname)

   #Setup the axes
   ax.margins(x=0)
   ax.grid()
   ax.legend()
   ax.set_xlabel("Time")
   ax.set_ylabel("Temperature (Deg C)")
   report.TimeAxis(ax.xaxis)

   report.Save()

See the mplreport reference to learn more.