API Reference#

The key functions of this package include the following.

texplot.theme([context, font_scale, style, ...])

texplot.get_theme([context, font_scale, ...])

Returns a dictionary that can be used to update plt.rcParams.

texplot.set_theme([context, font_scale, ...])

Sets a customized theme for plotting.

texplot.reset_theme()

Reset the matplotlib theme back it default.

texplot.save_plot(plt, filename[, ...])

Saves plot as svg format in the current working directory.

texplot.show_or_save_plot(plt[, filename, ...])

Show and/or save plot.