def format_y_ticks_as_dollars(plot):
    """Formats y ticks as dollar values with commas and no decimals.

    Args:
        plot: matplotlib.AxesSubplot object.
    """
    y_ticks = plot.get_yticks()
    plot.set_yticklabels(['${:,.0f}'.format(tick) for tick in y_ticks])
    return plot