Now, we are going to look at the chart called stacked-bars.png. This graph displays the breakdown of students who got As, Bs, Cs, Ds and Fs in each unit. The data you will need to recreate this chart is in the lists As, Bs, Cs, Ds, Fs and unit_topics. Save your recreated chart to a file called my_stacked_bar.png.
The Bs bars will go on top of the As bars, but at what heights will the Cs, Ds, and Fs bars start? The bottom of the bars representing the Cs will be at the height of the As plus the Bs. We cna do this in NumPy (a scientific computing package for Python) with the np.add function. c_botton, the starting heights for the Cs, will be:
Now, we are going to look at the chart called stacked-bars.png. This graph displays the breakdown of students who got As, Bs, Cs, Ds and Fs in each unit. The data you will need to recreate this chart is in the lists As, Bs, Cs, Ds, Fs and unit_topics. Save your recreated chart to a file called my_stacked_bar.png.