def delticks(fig):
    """
     deletes half the x-axis tick marks
    Parameters
    ___________
    fig : matplotlib figure number

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