Poof() should return ax
See original GitHub issueMake sure that ll visualizers return the self.ax
when calling poof(). This is so that users can always get access to the ax, for example when working inside a function in a notebook. In addition it will encourage the behavior pattern of tweaking the plot if desired after poof(). We will be adjusting our documentation to use this form to also encourage this behavior:
ax = viz.poof()
This why this behavior pattern is useful: https://stackoverflow.com/questions/47450804/yellowbrick-increasing-font-size-on-yellowbrick-generated-charts
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
How to return a matplotlib object then plot as subplot?
The idea would be to let your functions plot to an axes. Either you provide this axes as argument to the function or...
Read more >Visualization Techniques using Yellowbricks - Kaggle
If you're new to Yellowbrick, this guide will get you started and help you include visualizers in your machine learning workflow. Before we...
Read more >yellowbrick 0.3.3 documentation - PythonHosted.org
Returns a generator containing the predictions for each of the internal ... This curve is drawn to the ax (matplotlib axis) which must...
Read more >| notebook.community
If None is passed in the current axes will be used (or generated if required). ... model.poof() """ def __init__(self, model, ax=None, ...
Read more >Developing Visualizers — Yellowbrick v1.5 documentation
__init__(ax, **kwargs) def fit(self, X, y=None): self.draw(X) return self def ... y) is visualizer, "fit should return self" visualizer.finalize() except ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a workaround, once poof is called, you can access ax through:
ax = viz.ax
and fig:
fig = viz.ax.get_figure()
@michael-ziedalski - I’m a bit concerned that
poof
isn’t working for you - what environment are you in? Are you still at PyData? Stop by the District Data Labs table and I’d be happy to take a look at it with you.