mendevi.plot.printer

Generate a Python code that allows you to plot the graph.

Functions

print_cst(**kwargs)

Return the code of the definition of the constants.

print_entry()

Return the code of the entry point.

print_fill_axe(**kwargs)

Return the code that fill a given axes.

print_grid(axe, log, dim)

Define the ticks rule and log or linear scale.

print_header()

Return the code at the very top of the file.

print_import()

Print the importations.

print_main(**kwargs)

Return the code of the function that plot the final graphic.

print_read_sql(**kwargs)

Return the code of the function that perform the sql request.

print_selector(**kwargs)

Return the code for selecting a subset of the data.

print_subfigure(**kwargs)

Return the code for the subplot of a a given y and y axis.

printer(**kwargs)

Create an excecutable python code.

Details

mendevi.plot.printer.print_cst(**kwargs) list[str][source]

Return the code of the definition of the constants.

mendevi.plot.printer.print_entry() list[str][source]

Return the code of the entry point.

mendevi.plot.printer.print_fill_axe(**kwargs) list[str][source]

Return the code that fill a given axes.

mendevi.plot.printer.print_grid(axe: str, log: bool | None, dim: str) list[str][source]

Define the ticks rule and log or linear scale.

Parameters

axestr

The acessor to the matplotlib axe.

logboolean or None

Defined by get_extractor.

dimstr

“x” or “y”.

mendevi.plot.printer.print_header() list[str][source]

Return the code at the very top of the file.

mendevi.plot.printer.print_import() list[str][source]

Print the importations.

mendevi.plot.printer.print_main(**kwargs) list[str][source]

Return the code of the function that plot the final graphic.

mendevi.plot.printer.print_read_sql(**kwargs) list[str][source]

Return the code of the function that perform the sql request.

mendevi.plot.printer.print_selector(**kwargs) list[str][source]

Return the code for selecting a subset of the data.

mendevi.plot.printer.print_subfigure(**kwargs) list[str][source]

Return the code for the subplot of a a given y and y axis.

mendevi.plot.printer.printer(**kwargs) str[source]

Create an excecutable python code.

Parameters

databasepathlib.Path

The database path.

x, ytuple[str]

The name of the var along each axis.