pytrnsys_process.config.settings.Plot#

class pytrnsys_process.config.settings.Plot(file_formats: ~collections.abc.Sequence[str] = <factory>, figure_sizes: dict[str, tuple[float, float]] = <factory>, inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe', date_format: str = '%b %Y', label_font_size: int = 10, legend_font_size: int = 8, title_font_size: int = 12, markers: ~collections.abc.Sequence[str] = <factory>)[source]#

Class holding the global settings for plots.

file_formats#

List of file formats to which the plots will be exported when asked.

Type:

list[str]

figure_sizes#

Dictionary of figure sizes to save to file. By default these the ‘A4 plot’ will fit horizontally on an A4 page. Two of the ‘half A4 plot’ can fit horizontally on an A4 page.

Type:

dict[str, tuple[float, float]]

inkscape_path:

Path to the installation of Inkscape. This is required to save plots to the EMF format.

date_format:

Formatting to use when plotting datetimes.

__init__(file_formats: ~collections.abc.Sequence[str] = <factory>, figure_sizes: dict[str, tuple[float, float]] = <factory>, inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe', date_format: str = '%b %Y', label_font_size: int = 10, legend_font_size: int = 8, title_font_size: int = 12, markers: ~collections.abc.Sequence[str] = <factory>) None#

Methods

__init__([file_formats, figure_sizes, ...])

Attributes

file_formats: Sequence[str]#
figure_sizes: dict[str, tuple[float, float]]#
inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe'#
date_format: str = '%b %Y'#
label_font_size: int = 10#
legend_font_size: int = 8#
title_font_size: int = 12#
markers: Sequence[str]#
__init__(file_formats: ~collections.abc.Sequence[str] = <factory>, figure_sizes: dict[str, tuple[float, float]] = <factory>, inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe', date_format: str = '%b %Y', label_font_size: int = 10, legend_font_size: int = 8, title_font_size: int = 12, markers: ~collections.abc.Sequence[str] = <factory>) None#