Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Introduction to Data Visualization with Matplotlib Data Eruption Decision Process

Adam Tyler
Adam Tyler
14,865 Points

In this video the resulting charts are very different to the ones displayed in the 'Final Report' in the next video

The results in both the next video and the project downloads (which match) are very different to the values in this video. My values when I was following along match the next video, but it made me think I had done something wrong.

Was he using the wrong data set in the first video? I am very confused as to why the images appear very different?

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Adam Tyler !

In this video under the Teacher's Notes, this discrepancy is explained in the following quote:

Matplotlib Version Update: At around 8:20 in the video the scatter plot being show doesn't show a good correlation between data points. This course was recorded with matplotlib version 2.0.2 and in current versions of the library the implementation of scatter plots has changed.

The short story is that between the time the video was shot and now, matplotlib has made improvements to scatter plots so the results will look different and better :smiley:

Hope this helps! :sparkles:

Adam Tyler
Adam Tyler
14,865 Points

Thank you. Though the problem was with all the graphs, and they have different axes and look completely different from the ones in the next video. It looks like a different data set may have been used to me.

That ,would have to be mentioned; does also include the histogram. .... So In my version, it displays in a "usable way". I 'd presume. how ever the data changed as the old top histogram in 2.0.2 shows ("NERD ALERT!") the top as 35 (with slight dips) in the video but in my histogram, it shows clearly the top being at 71 or so on the y axis. ;-)