question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poof() should return ax

See original GitHub issue

Make 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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fdioncommented, Apr 3, 2018

As a workaround, once poof is called, you can access ax through:

ax = viz.ax

and fig:

fig = viz.ax.get_figure()

0reactions
bbengfortcommented, Jan 11, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found