# HTML Report Generation ```{currentmodule} pyroll.ui.reporter.hookspecs ``` PyRolL includes a class capable of generating an HTML page presenting the simulation results, which can be archived and printed. The report can be generated by use of the CLI through the [`report`](cli.md#report) command. The report includes per default key properties of all units, plots of incoming and outgoing profiles in each roll pass, as well as some plots of key values along the whole sequence. The contents of the report can be modified using hooks. The report includes tables listing properties of units or the whole sequence. One can customize the properties shown there by providing hook implementations. For the table listing unit properties use the {py:func}`unit_properties` hook. For the table listing properties of the whole sequence, use the {py:func}`sequence_properties` hook. The hook implementations must return in both cases a mapping from string keys to values. The keys are printed in the first column of the table. The values may be of any type, but they should have meaningful `__str__` methods to lead to feasible results. The report includes several plots. Plots visualizing the whole sequence of units or parts of it can be added by providing an implementation of the {py:func}`sequence_plot` hook. Plots visualizing a single unit can be added by providing an implementation of the {py:func}`unit_plot` hook. The hook implementations must return in both cases an instance of matplotlib's `Figure` class. ## Class Documentation ```{eval-rst} .. autoclass:: pyroll.ui.reporter.Reporter :members: ``` ## Hooks ```{eval-rst} .. automodule:: pyroll.ui.reporter.hookspecs :members: ```