publiplots.set_axis_labels

publiplots.set_axis_labels(ax, xlabel=None, ylabel=None, title=None, fontsize=None, fontweight='normal')[source]

Set axis labels and title with consistent formatting.

Parameters:
  • ax (Axes) – Matplotlib axes object.

  • xlabel (str, optional) – X-axis label.

  • ylabel (str, optional) – Y-axis label.

  • title (str, optional) – Plot title.

  • fontsize (float, optional) – Font size for labels. If None, uses current rcParams.

  • fontweight (str, default='normal') – Font weight: ‘normal’, ‘bold’, ‘light’, etc.

Examples

>>> pp.set_axis_labels(ax, xlabel='Time (s)', ylabel='Signal', title='Results')