code: def clear_matplotlib_ticks(ax=None, axis="both"):
      """
      Clears the default matplotlib axes, or the one specified by the axis
      argument.
  
      Parameters
      ----------
      ax: Matplotlib AxesSubplot, None
          The subplot to draw on.
      axis: string, "both"
          The axis to clear: "x" or "horizontal", "y" or "vertical", or "both"
      """
      if not ax:
          return
      if axis.lower() in ["both", "x", "horizontal"]:
          ax.set_xticks([], minor=False)
      if axis.lower() in ["both", "y", "vertical"]:
          ax.set_yticks([], minor=False)
  
file_path: python-ternary/ternary/plotting.py
imports: import matplotlib
  from matplotlib import pyplot
  import numpy
  from .helpers import project_sequence
  from .colormapping import get_cmap, colorbar_hack
label_desc: Use image node_id 2 for calling a global function with example usage: clear_matplotlib_ticks(ax, axis) without return types