Closed egpbos closed 5 months ago
P.S.: "we" here is me and @cwmeijer :)
Whoops, forgot to rebase on main, done now.
Your nitpick is my command ;)
I did not hint it completely. The matplotlib stuff is just too complex and bloaty and increases maintenance cost. I think the reference in the docstring to go look at mpl.Axes.imshow is best for those options.
The CI failures are HTTP timeouts unrelated to this PR.
Will you merge when you think it's done?
Adds to the plot_image and plot_tabular functions an optional argument ax: plt.Axes. When given, this is the Axes that will be used to plot on and the internal plt.subplots call is skipped. This is useful for using these functions in custom multi-panel plots (we want to use this in a paper).
We actually only need this for the
plot_image
function, but I added it toplot_tabular
as a bonus ;) Theplot_timeseries
function is too complicated, I don't have time to add it there right now, but the principle will be similar (except now the ax has to be passed through three layers of helper functions).