I am trying to plot a bar graph using matplotlib pyplot, but figure is really strange.Axis are too large as highlighted by yellow color, x and y labels are out of the screen. Also I would like to remove lines highlighted in red. Here is the code.
import matplotlib.pyplot as plt
plt.figure(figsize=(2, 1))
plt.bar(index, auc_score_per_class) # index and auc.. are arrays
plt.xlabel('Attributes', fontsize=0.5)
plt.ylabel('Score', fontsize=1)
plt.xticks(index, labels, fontsize=0.5, rotation=90)
plt.savefig('auc.jpg', format='jpg', dpi=1024)
Kindly let me know, 1. how to decrease the size of axis lines and scale highlighted in yellow, 2. remove lines highlighted in red and 3. Avoid x and y lables from vanishing out of figure.
Thanks.