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_error(**kwargs)

Help for print_fill_axe.

print_fill_axe(**kwargs)

Return the code that fill a given axes.

print_grid(axe, dim, scale)

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_mean_std()

Return the code to compute the mean and the std of a list.

print_read_sql(**kwargs)

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

print_subfigure(**kwargs)

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

printer(**kwargs)

Create an excecutable python code.

safe_lbl(lbl)

Convert the label into a valid lowercase variable.

Details

mendevi.plot.printer.print_cst(**kwargs: dict) 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_error(**kwargs: dict) list[str][source]

Help for print_fill_axe.

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

Return the code that fill a given axes.

mendevi.plot.printer.print_grid(axe: str, dim: str, scale: Scale) list[str][source]

Define the ticks rule and log or linear scale.

Parameters

axestr

The acessor to the matplotlib axe.

dimstr

“x” or “y”.

scaleScale

Linear, logarithmic or discrete.

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: dict) list[str][source]

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

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

Return the code to compute the mean and the std of a list.

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

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

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

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

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

Create an excecutable python code.

mendevi.plot.printer.safe_lbl(lbl: str) str[source]

Convert the label into a valid lowercase variable.