# One option and probably the best/most standard way, is to put the plt.figure before the plt.bar import matplotlib.pyplot as plt plt.figure(figsize=(20,10)) plt.bar(x['user'], x['number'], color="blue")