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
Parameter | Type | Default | Meaning |
---|---|---|---|
axis | Axis | The MatPlotLib axis object to modify. | |
samples | int | The number of samples in your range. | |
starttime | DateTime | None | The start of your time range. If None, uses the start of the report range. |
endtime | DateTime | None | The 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.