HeatMapTimeAxis

The HeatMapTimeAxis function of the mplreport class is similar to the TimeAxis function, but is used when you don't have a DateTime index to work with.

Given a number of samples, it creates axis ticks that look like dates/times.

Note that it assumes that your data is regularly spaced - that there is an equal length of time between each sample.

Parameters
ParameterTypeDefaultMeaning
axisAxisThe MatPlotLib axis object to modify.
samplesintThe number of samples in your range.
starttimeDateTimeNoneThe start of your time range. If None, uses the start of the report range.
endtimeDateTimeNoneThe end of your time range. If None, uses the end of the report range.
Return

None

Example
report.TimeAxis(ax.xaxis,200)

This creates an x-axis that appears as a date range covering the range of the report, even though the actual x-axis values are between 0 and 200.