2

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.

2
  • 2
    I'm not exactly sure I understand what you want, but you should check out matplotlib, in particular matplotlib.pyplot.hist. Commented Jan 24, 2012 at 16:24
  • You could use the code in this answer or this answer as an example for plotting histograms. Commented Jun 1, 2016 at 12:42

2 Answers 2

2

Please have a look at matplotlib.pyplot.hist.

Sign up to request clarification or add additional context in comments.

Comments

2

I'm not sure but I think you could have a look at matplotlib.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.