code: def _set_tick_lines_visibility(ax, visible=True):
      
      for i, thisAxis in enumerate((ax.get_xaxis(), ax.get_yaxis())):
          for thisItem in thisAxis.get_ticklines():
              if isinstance(visible, list):
                  thisItem.set_visible(visible[i])
              else:
                  thisItem.set_visible(visible)
docs: Set the visibility of the tick lines of the requested axis.