helper module
Define types and helpers for the visualization library.
- create_fig_if_not_exists(axnum, sharex=False, num=1, clean_fig=False, **kwargs)[source]
Check if figures were already created, create it if not.
- Parameters:
axnum (int | list[int] | range) – Axes indexes as understood by
Figure.add_subplot, or number of desired axes.sharex (bool, optional) – If x axis should be shared. The default is False.
num (int, optional) – Fig number. The default is 1.
clean_fig (bool, optional) – If the previous plot should be erased from Figure. The default is False.
- Return type: