Instructions were to plot 3 individual plots not one with all of them. Also plt.subplot should be called before you make the plot. plt.bar creates a default ax object. If you want to use your defined ax object, you will need to create before you call plt.bar.
Ok! yes i'm fuzzy on those plt.sublot commands.
For the plot I know it was not the instructions but thought plotting on one was so much more useful to visualize how both groups did on applications and memberships.
https://github.com/Nzumino/intro-data-capstone-musclehub/blob/ea6ae5b91f08e69bc4acd525015580da8cdd7e1a/Mhub%20NZ%20assignment/musclehub.py#L450-L456
Instructions were to plot 3 individual plots not one with all of them. Also
plt.subplot
should be called before you make the plot.plt.bar
creates a defaultax
object. If you want to use your definedax
object, you will need to create before you callplt.bar
.