scisalt/matplotlib/less_labels.py
def less_labels(ax, x_fraction=0.5, y_fraction=0.5):
    """
    Scale the number of tick labels in x and y by *x_fraction* and *y_fraction* respectively.
    """
    nbins = _np.size(ax.get_xticklabels())
    ax.locator_params(nbins=_np.floor(nbins*x_fraction), axis='x')

    nbins = _np.size(ax.get_yticklabels())
    ax.locator_params(nbins=_np.floor(nbins*y_fraction), axis='y')
def less_labels(ax, x_fraction=0.5, y_fraction=0.5):
    """
    Scale the number of tick labels in x and y by *x_fraction* and *y_fraction* respectively.
    """
    nbins = _np.size(ax.get_xticklabels())
    ax.locator_params(nbins=_np.floor(nbins*x_fraction), axis='x')

    nbins = _np.size(ax.get_yticklabels())
    ax.locator_params(nbins=_np.floor(nbins*y_fraction), axis='y')
def less_labels ( ax , x_fraction = 0.5 , y_fraction = 0.5 ) : nbins = _np . size ( ax . get_xticklabels ( ) ) ax . locator_params ( nbins = _np . floor ( nbins * x_fraction ) , axis = 'x' ) nbins = _np . size ( ax . get_yticklabels ( ) ) ax . locator_params ( nbins = _np . floor ( nbins * y_fraction ) , axis = 'y' )
Scale the number of tick labels in x and y by *x_fraction* and *y_fraction* respectively.
Scale the number of tick labels in x and y by * x_fraction * and * y_fraction * respectively .