plot.export_plot()

Export a plot for the OES report.

Usage

Source

plot.export_plot(
    meta, snr, audience, report, data, ubb=False, year=None, export=True
)

Parameters

meta: str

Plot name / ID (e.g., ‘A12’, ‘A3a’, etc.).

snr: str or int

School number.

audience: str

Audience type.

report: str

Report template name.

data: pd.DataFrame

Preprocessed long-format plot data with ‘vars’, ‘vals’, ‘label_short’, ‘set’.

ubb: bool = False

Flag passed if UBB or not.

year: str or int = None

School year (used for directory).

export: bool = True
If True, saves the plot to PDF; else returns the plot.