untilperfect.plots module

plots.py

This module contains functions to plot results.

untilperfect.plots.cyclic_xranges(start_time, duration, cycle_time)[source]

Where a range crosses the cycle time boundary, split into 2 ranges.

Parameters:
Returns:

List of operation time ranges.

Return type:

list

untilperfect.plots.explanatory_plot(filename='explanatory.svg')[source]

Plot that explains duration parameters.

untilperfect.plots.label_style(label)[source]

Wrapper to encode labels in latex format if this setting is active.

Parameters:label (str) –
Returns:
Return type:str
untilperfect.plots.matplotlib_init()[source]

Change some matplotlib settings.

untilperfect.plots.single_cycle_plot(problem, filename=None)[source]

Generate a single-cycle steady-state equipment occupancy plot.

Parameters:
  • problem (untilperfect.Problem) –
  • filename (str or None, optional) – If a filename string is specified, saves plot to file, otherwise opens plot in a tk window.