-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Visualization API changes #265
Comments
As of 5ed199a, functions returning a single figure cause them to be rendered twice when called as the last line in a notebook cell. The reason is the following I believe:
Functions producing multiple figures are not affected by this duplication, since the return value is a To solve duplication, there are the following options:
A reasonable short term solution seems to be to close figures from single-figure functions by default. There are multiple ways for them to still be rendered anyway. Multi-figure functions can stay open by default, so all figures are also rendered there. In the longer term a more unified solution could be useful. Feedback from analyzers using |
Examples of editing a data/MC figure (experiment labels, axis labels, removing existing text on the figure and replacing it): https://gist.github.com/alexander-held/2ca63e4c4c3de2114bf8d903bf28bb4a edit: now also includes an example for how to add a normalized signal (and re-do the legend) |
This collects information regarding changes in the
cabinetry
visualization API, and is a follow-up to #251.matplotlib
a core dependency and refactored the plotting code.visualize
module return figures (or a list of dictionaries with figures)visualize.data_mc
to take a model prediction object instead of a model, and added a newchannels
keyword argumentOutstanding items and open questions (including pieces from #381):
visualize.plot_model
andvisualize.plot_result
, and those functions should then likely return artists. Calling these functions directly comes with a loss in convenience, e.g. the correlation matrix pruning threshold. Could consider factoring out the convenience functions? Handing axes to thevisualize
-level functions is more challenging, since several of these can return multiple figures (and the exact number is not easily known forvisualize.templates
).visualize.templates
(figures still kept around even withclose_figure=True
as long as reference to them exists).The text was updated successfully, but these errors were encountered: