You are reading an old version of the documentation (v3.0.2). For the latest version see https://matplotlib.org/stable/
Version 3.0.2
matplotlib
Fork me on GitHub

matplotlib.axis.Tick.set_snap

Tick.set_snap(snap)

Sets the snap setting which may be:

  • True: snap vertices to the nearest pixel center
  • False: leave vertices as-is
  • None: (auto) If the path contains only rectilinear line segments, round to the nearest pixel center

Only supported by the Agg and MacOSX backends.

Parameters:
snap : bool or None