usc-cosmolab / hackspace

Materials from CosmoLab group meetings.
MIT License
4 stars 16 forks source link

updated plot_pk function #20

Closed annahaynie closed 4 years ago

annahaynie commented 4 years ago

@syasini I thought we decided that the "return fig" at the end was redundant and caused the plot to show twice? I may be misremembering

syasini commented 4 years ago

@annahaynie No, you're absolutely right. It does behave like that in the jupyter notebook, but I think @timothydmorton wanted the function to return an instance of matplotlib. At least that's what's implemented in the current test. Maybe he can clarify this after reviewing the commits.

timothydmorton commented 4 years ago

In the notebook, if you don't want the figure to display twice, you can end the last line of your cell with a ;-- that will suppress the output (meaning, it won't display twice).