sariabod / codeacademy

intro to data analysis
1 stars 0 forks source link

Nice! Your plots are great #4

Open Caealana opened 6 years ago

Caealana commented 6 years ago

https://github.com/sariabod/codeacademy/blob/56a6d84f2cf3145213a25ec3a9fd028c7b33f216/musclehub_project/musclehub.py#L90-L99

Your plots are correct and use good titles and axis labeling.

sariabod commented 6 years ago

@Caealana the whole subplot thing is still a little hazy. At some point the graphs will all going on top of each other. I was able to look up the clf() function, but I am not sure if this is the correct approach. I am so used to setting different variables for different graphs, but in this case it didn't work as expected.

Caealana commented 6 years ago

@sariabod Do you have an example of the code you used to produce plots going on top of each other? I think using clf() is fine in this case (plt.clf() clears the entire current figure with all its axes, but allows the window to be reused for other plots.). What didn't work as expected?

sariabod commented 6 years ago

@Caealana samecode, just remove the clfs and you get this.

jumbled_mess

Each graphs builds on top of the other despite using different variables. This was counter intuitive. I have since played with it and understand it more as a "canvas" that you build on instead of being individual graph objects (which is more in line to what I am used to).