neuralib.plot.tools.insert_latex_equation

neuralib.plot.tools.insert_latex_equation(ax, tex, output=None)[source]

Plot figure with latex expression, and save as image

Parameters:
  • ax (Axes) – matplotlib.axes.Axes

  • tex (str) – latex string

  • output (str | Path | PathLike[str] | None) – output of the fig, if None then save the figure