remove_axis

Contents

remove_axis#

class braintools.visualize.remove_axis(ax, *pos)#

Hide axis spines, or blank the whole panel when no spine is named.

Parameters:
  • ax (matplotlib.axes.Axes) – The axes to modify.

  • *pos (str) – Spine names to hide, any of 'left', 'right', 'top', 'bottom'. When called with no spine names, all four spines and the tick marks are removed, turning the panel into a blank decorative cell (this matches the documented remove_axis(ax) usage).

Raises:

ValueError – If a position is not one of the four valid spine names.