1import matplotlib.pyplot as plt
2
3plt.figure(figsize=(14,7))
4plt.bar(x,y)
5
6# if you have plotted you graph directly using dataframe like this ↓
7data.plot(kind='bar')
8
9# then use this
10plt.rcParams["figure.figsize"] = (14,7)
11
12
1# figsize is an optional parameter in matplotlib.pyplot library's .figure() function
2# it defaults to = None
3# syntax:
4# figsize=(width, height)
5# - each integer much be a float
6
7import matplotlib.pyplot as plt
8
9figure = plt.figure(figsize = (10,5));
1from matplotlib.pyplot import figure
2figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k')