I have the following code: from pandas_datareader import data as web
import pandas as pd
from datetime import timedelta
import mplfinance as mpf
import matplotlib as plt
df = web.DataReader('goog','yahoo', start="2021-07-3", end="2021-09-12")
mpf.plot(df, style='charles', type = 'candle', volume=True, figratio=(12,8), bbox_inches='tight')
bbox_inches='tight' is throwing an error:
KeyError: 'Unrecognized kwarg="bbox_inches"'
How can i make margins tight?