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.

API Discussion for Figures and Axes

See original GitHub issue

This issue is to discuss the open letter regarding Yellowbrick’s API roadmap. To summarize, we currently attempt to only manage matplotlib Axes objects so that visualizers can be embedded into more complex plots and reports. However, many of our visualizers are getting increasingly complex, requiring subplots of their own. For a complete discussion of the API issue please see:

https://www.scikit-yb.org/en/develop/api/figures.html

The questions at hand are:

  1. Like Seaborn, should YB have two classes of visualizer, one that wraps an axes and one that wraps a figure?
  2. Should we go all in on the AxesGrid toolkit and continue to restrict our use of the figure, will this method be supported in the long run?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bbengfortcommented, Jul 8, 2019

@rebeccabilbro I think this will require us to modify our matplotlib dependency to 2.0.2 or later.

0reactions
bbengfortcommented, Aug 28, 2019

In #957 we added a Visualizer.fig and updated the dependency to 2.0.2 or later. These changes along with this excellent discussion has moved us forward to our v1.0 release and v1.1 will include more robust support for multi-Axes figures and quick methods.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Figures and Axes — Yellowbrick v1.5 documentation
We'd like to get some advice on the API choice we've made and thoughts about our use of the matplotlib Axes objects. One...
Read more >
Matplotlib - Pyplot API - Tutorialspoint
Matplotlib - Pyplot API, A new untitled notebook with the .ipynbextension (stands for the ... Axes. Add axes to the figure. 2. Text....
Read more >
2. Object Oriented Interface — mpl-tutorial 0.1 documentation
This object-oriented approach is the recommended API in most data visualization scenarios. As part of this discussion, we will discuss generating multi-panel ...
Read more >
Why You Hate Matplotlib - r y x, r
It's not too hard to recreate Matplotlib's API design in another context, explore why it's bad, explore how we would make it better,...
Read more >
API Reference — Matplotlib 3.6.2 documentation
Example: We create a Figure fig and Axes ax . Then we call methods on them to plot data, add axis labels and...
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