Plotter

class pysolorie.plotter.Plotter[source]

A class used to plot the optimal orientation of a solar panel.

plot_optimal_orientation(irradiation_calculator: IrradiationCalculator, from_day: int, to_day: int, path: Path | None = None, plot_kwargs: Dict[str, str] | None = None, savefig_kwargs: Dict[str, str] | None = None) None[source]

Plots the optimal orientation of a solar panel for a range of days.

Parameters:
  • irradiation_calculator (pysolorie.IrradiationCalculator) – An instance of the IrradiationCalculator class.

  • from_day (int) – The starting day for the range of days.

  • to_day (int) – The ending day for the range of days.

  • path (Path, optional) – The path where the plot will be saved (default is None, which means the plot will be shown but not saved).

  • plot_kwargs (dict, optional) – A dictionary of keyword arguments to be passed to the plot (default is None).

  • savefig_kwargs (dict, optional) – A dictionary of keyword arguments to be passed to the savefig function (default is None).

plot_total_direct_irradiation(irradiation_calculator: IrradiationCalculator, from_day: int, to_day: int, path: Path | None = None, plot_kwargs: Dict[str, str] | None = None, savefig_kwargs: Dict[str, str] | None = None) None[source]

Plots the total direct irradiation for a range of days.

Parameters:
  • irradiation_calculator (pysolorie.IrradiationCalculator) – An instance of the IrradiationCalculator class.

  • from_day (int) – The starting day for the range of days.

  • to_day (int) – The ending day for the range of days.

  • path (Path, optional) – The path where the plot will be saved (default is None, which means the plot will be shown but not saved).

  • plot_kwargs (dict, optional) – A dictionary of keyword arguments to be passed to the plot (default is None).

  • savefig_kwargs (dict, optional) – A dictionary of keyword arguments to be passed to the savefig function (default is None).