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?
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.
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
andgirls
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?