def generate_title(data, ticker, price_type):
    """
    generate a title for the price / volume data subplot
    """
    title = ticker.upper() + " daily " + price_type.lower() + ": "
    title += str(data.index[0].date()) + " to " + str(data.index[-1].date())
    return title