This community-built FAQ covers the “Two Histograms on a Plot” exercise from the lesson “Recreate graphs using Matplotlib!”.
Paths and Courses
This exercise can be found in the following Codecademy content:
Data Science
Data Visualization in Python
FAQs on the exercise Two Histograms on a Plot
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply (
) below!
Agree with a comment or answer? Like (
) to up-vote the contribution!
Need broader help or resources? Head here.
Looking for motivation to keep learning? Join our wider discussions.
Learn more about how to use this guide.
Found a bug? Report it!
Have a question about your account or billing? Reach out to our customer support team!
None of the above? Find out where to ask other questions here!
If you search how to normalize a histogram its with “density=True”; however, for this exercise you need to use “normed=True” or the code wont be accepted
4 Likes
Great catch. I wonder how often Codecademy updates its lessons to stay current.
1 Like
Same here when i run it on my most recent JupyterLab below is the error it throws
So I am assuming the codecademy back end is still configured and not upgraded to 3.1
"MatplotlibDeprecationWarning:
The ‘normed’ kwarg was deprecated in Matplotlib 2.1 and will be removed in 3.1. Use ‘density’ instead. "
Can we always interchange True as 1 or is it specific functions where you can use it ?
So this code has been obsolete for over a year now. I got a MatplotlibDeprecationWarning: using subplot also. The time wasted on this chasing a parameter that no longer exists burned this lesson for me
. Copy the solution code and move on.
Still not updated… Things like this should be caught in a paid service!
I have issue about bins. I set bins equal to 12, which is required in the question. However, I can’t get passed.