figlayout#

class figlayout(fig=None, tight=True, keep=False, **kwargs)[source]#

Alias to both fig.set_tight_layout() and fig.subplots_adjust().

Parameters:
  • fig (Figure) – the figure (by default, use current)

  • tight (bool, or dict) – passed to fig.set_tight_layout(); default True

  • keep (bool) – if True, then leave tight layout on; else, turn it back off

  • kwargs (dict) – passed to fig.subplots_adjust()

Example:

fig,axs = sc.get_rows_cols(37, make=True, tight=False) # Create 7x6 subplots, squished together
sc.figlayout(bottom=0.3)

New in version 1.2.0.