My bar plot is shown in the image below: https://i.stack.imgur.com/cmmDs.png
However, the space between two graphs are too wide. I want the space to be less. My code is here:
import matplotlib.pyplot as plt
fig = plt.figure(figsize = (4, 3))
x = ['Grayscale', 'Colored']
y = [accuracy_gray-0.5, accuracy_colored-0.5]
plt.bar(x, y, color ='red',
width = 0.3, bottom = 0.5, align='center')
plt.text(-0.08, 0.8, round(y[0]+0.5, 2))
plt.text(0.92, 0.8, round(y[1]+0.5, 2))
How could I narrow the space between, given that we can only use plt.bar() method, not something else?