code: def delticks(fig):
      
      locs = fig.xaxis.get_ticklocs()
      nlocs = np.delete(locs, list(range(0, len(locs), 2)))
      fig.set_xticks(nlocs)
docs: deletes half the x-axis tick marks
      Parameters
      ___________
      fig : matplotlib figure number