How do you change the size of figure drawn with matplotlib?
In case you're looking for a way to change the figure size in Pandas, you could do e.g.:
df['some_column'].plot(figsize=(10, 5))
where df
is a Pandas dataframe. Or, to use existing figure or axes
fig, ax = plt.subplots(figsize=(10,5))
df['some_column'].plot(ax=ax)
If you want to change the default settings, you could do the following:
import matplotlib
matplotlib.rc('figure', figsize=(10, 5))