Define size of Figure

import matplotlib.pyplot as plt
import pandas as pd
data = {'fruits': ['apple', 'banana', 'mango', 'orange'], 'price':[4, 7, 12, 10]}
df = pd.DataFrame(data)
df
fruits price
0 apple 4
1 banana 7
2 mango 12
3 orange 10
plt.bar(df['fruits'], df['price'])
<BarContainer object of 4 artists>

png

plt.figure(figsize=(10,6))
plt.bar(df['fruits'], df['price'])
<BarContainer object of 4 artists>

png