pyxfem.postpro.plot_tools module

Created on Thu April 4 12:42:30 2024

@author: nchevaug

pyxfem.postpro.plot_tools.figax(xlabel: str, ylabel: str)[source]

simple function to create fig with names axis

pyxfem.postpro.plot_tools.savefig(fig: Figure, filepath: Path | str) → None[source]

Export the figure fig to file named filepath. if extension is .tikz or .tex, use tikzplotlib For the export

pyxfem.postpro.plot_tools.show() → None[source]

display interactive matplotlib figure

pyxfem.postpro.plot_tools.tikzplotlib_fix_ncols(obj)[source]

workaround for matplotlib 3.6 renamed legend’s _ncol to _ncols, which breaks tikzplotlib