Repository navigation
DOC add section on matplotlib usage within the display classes - #34136
Merged
Merged
Conversation
2 of 4 tasks
thomasjpfan
reviewed
May 29, 2026
| dependency for building and using the package (it is only required for building the | ||
| docs). Therefore, it is also not imported globally in the display classes, but only | ||
| within the plotting functions where it is actually needed. To import it, use | ||
| `check_matplotlib_support |
Member
There was a problem hiding this comment.
The line number can easily get out of date. An alternative is to reference the file and the function to pay attention to.
Member
Author
There was a problem hiding this comment.
That makes sense. Thanks! I updated both sections.
| message including the caller that requested it, for reference. | ||
|
|
||
| For testing, use the `pyplot fixture | ||
| <https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/conftest.py#L256>`_ as |
Member
There was a problem hiding this comment.
Same here regarding line number being out of date.
jeremiedbb
pushed a commit
that referenced
this pull request
Jun 2, 2026
prady0t
pushed a commit
to prady0t/scikit-learn
that referenced
this pull request
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
I gathered this information while working on the displays and thought it could be useful to make it explicit.
What does this implement/fix? Explain your changes.
Adds a section on how
matplotlibis imported in the display classes and the corresponding tests, as it is not a required dependency of scikit-learn.AI usage disclosure
I used AI assistance for:
Any other comments?