简体   繁体   中英

Creating histogram plot

I have a 2D array. Lets say column 1 (a distribution), ranges from 0-2, column 2, ranges from 2-4, column 3, from 4-6 etc. I want to have a histogram plot for each of the columns, colored by the range, so for

column 1, blue-0 and red-2, 
column 2, blue-2 and red-4,

...and so on.

请看看matplotlib.pyplot.hist

我不确定,但我认为您可以看看matplotlib

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM