abjer / sds2019

Social Data Science 2019 - a summer school course
https://abjer.github.io/sds2019
46 stars 96 forks source link

Exercise 3.3.4 shows no plot #18

Open MadsLang opened 5 years ago

MadsLang commented 5 years ago

When I run the code in exercise 3.3.4, it does not create a plot. The code executes without an error-message, but there is not shown any plot. I have not changed any of the code. The lists boys and girls works, and I can see them as lists.

On Stack Exchange some people have experienced similar problems with matplotlib, and they suggest to change the "backend" of matplotlib. I am not sure how to do that, or if that is why I am experiencing this problem?

milanvanko commented 5 years ago

The plot itself is inside the function plot_births(boys, girls). You just need to call the function with the lists you obtained previously as inputs and the plot will be displayed.

MadsLang commented 5 years ago

Of course! It works. Thank you :)