0

I have this figure plotted 4 bins together. Bins 1 to 4 contain, respectively 3, 29, 129 & 880 features. But unfortunately the first bin is almost not visible due to its small value. Is there a way to scale the y-axis so that all the bins are visible?

enter image description here

The code of cause:

#bins_label = [10,20,40,180]
bins = [bin10, bin20, bin40, bin180]
num_bins = 4
index = np.arange(num_bins)
plt.bar(index, bins,alpha=0.9, width=0.35, facecolor='lightskyblue', edgecolor='white', lw=1)
plt.xticks(index + 0.35, ('<10', '<20', '<40', '<180'))
plt.tight_layout();
plt.show()
SiHa
  • 7,830
  • 13
  • 34
  • 43
Yingqiang Gao
  • 939
  • 4
  • 16
  • 29

0 Answers0