ml_research_tools.tex.presets.nice_figures.golden_figure(colwidth=3.6363636363636362, ratio=1.6180339887, figsize=None, layout='constrained', dpi=72, **kwargs)[source]#

Create a figure with a golden ratio aspect ratio.

Parameters:
  • figsize (tuple) – Size of the figure in inches (width, height).

  • colwidth (float) – Column width in inches.

  • ratio (float) – Aspect ratio for the figure.

  • **kwargs – Additional keyword arguments for plt.figure.

Returns:

A matplotlib figure object.

Return type:

Figure

ml_research_tools.tex.presets.nice_figures.golden_subplots(nrows=1, ncols=1, colwidth=3.6363636363636362, ratio=1.6180339887, figsize=None, layout='constrained', dpi=72, **kwargs)[source]#

Create subplots with a golden ratio aspect ratio.

Parameters:
  • nrows (int) – Number of rows of subplots.

  • ncols (int) – Number of columns of subplots.

  • figsize (tuple) – Size of the figure in inches (width, height).

  • ratio (float) – Aspect ratio for the figure.

  • **kwargs – Additional keyword arguments for plt.subplots.

Returns:

Figure and array of Axes objects.

Return type:

tuple