I have a nested list, whose data I need to plot on different histograms.
...
...
numbers = [[float(line[1]) for line in chr ] for chr in result]
plt.hist(numbers)
plt.show()
Doing so, the output is one only figure, with the bars of the different histograms in each bin (for instance the first bin contains the first bar of every histogram) Instead what I want is to have separate histograms. I tried to do a for cycle:
for w in numbers:
plt.hist(w)
plt.show()
but doing so I obtaine only a histogram per time, and I am allowed to see the next one, only when i close the previous one. What shall I do?