tabensemb.trainer.Trainer.plot_on_one_axes#
method
- Trainer.plot_on_one_axes(meth_name: str | List, meth_kwargs_ls: List[Dict], twin: bool = False, fontsize: float = 12, xlabel: str | None = None, ylabel: str | None = None, twin_ylabel: str | None = None, ax=None, meth_fix_kwargs: Dict | None = None, figure_kwargs: Dict | None = None, legend_kwargs: Dict | None = None, savefig_kwargs: Dict | None = None, save_show_close: bool = True, legend: bool = False) Axes[source]#
Plot multiple items on one
matplotlib.axes.Axes.- Parameters:
- meth_name
The method or a list of methods to plot multiple items. The method should have an argument named ax which indicates the subplot.
- meth_kwargs_ls
A list of arguments of the corresponding
meth_name(except forax).- twin
Plot one plot on
axand the next plot onax.twin().- fontsize
plt.rcParams["font.size"]- xlabel
The overall xlabel.
- ylabel
The overall ylabel.
- twin_ylabel
The overall ylabel of the twin x-axis if
twinis True.- ax
matplotlib.axes.Axes- meth_fix_kwargs
Fixed arguments of
meth_name(except forax,ls_kwarg_name, and those given inmeth_kwargs_ls).- figure_kwargs
Arguments for
plt.figure.- legend_kwargs
Arguments for
plt.legend()- savefig_kwargs
Arguments for
plt.savefig- save_show_close
Whether to save, show (in the notebook), and close the figure if
axis not given.- legend
Whether to show the legend.
- Returns:
- matplotlib.axes.Axes