Open vandalt opened 2 years ago
@kammerje I was taking a look into this to display fouriever
plots in a notebook. I was wondering which option you preferred between:
show=False
(off by default) argument in plotting functionsplt.show()
and edit the figure in separate codeOption 1 has the advantage that behaviour by default is 100% the same as before (nothing returned and figure is closed at the end of each function). Option 2 would not cause figures anymore, but would have the upside to let users access the figure to modify it with custom code, use plt.show()
externally, and even save the figure in a custom filename.
Let me know what you think.
Thanks!
We could also add a return_figure
keyword that is False
by default.
Currently, figures are saved and closed internally. It would be nice to have the option to show the figure as well (with a switch in the function argument, or to make the figure accessible for users, so they can show it with
plt.show()
. This would especially nice for notebooks (e.g. the KPI Pipeline example).