Remove matplotlib warnings from examples executed when generating the documentation
See original GitHub issueThere is a warning generated in our documentation for the 2 following examples:
- https://scikit-learn.org/stable/auto_examples/inspection/plot_permutation_importance.html#sphx-glr-auto-examples-inspection-plot-permutation-importance-py
- https://scikit-learn.org/stable/auto_examples/inspection/plot_permutation_importance_multicollinear.html#sphx-glr-auto-examples-inspection-plot-permutation-importance-multicollinear-py
The warning is linked with the decoration of the yticks
:
/home/circleci/project/examples/inspection/plot_permutation_importance.py:133: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_yticklabels(feature_names[sorted_idx])
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to suppress matplotlib warning? - python - Stack Overflow
You can suppress all warnings: import warnings warnings.filterwarnings("ignore") import pandas.
Read more >How to suppress Matplotlib warning? - Tutorialspoint
When we execute the code, it will suppress the warning and display the following plot. Now, remove the line, warnings.filterwarnings("ignore") ...
Read more >warnings — Warning control — Python 3.11.1 documentation
Python programmers issue warnings by calling the warn() function defined in this module. (C programmers use PyErr_WarnEx() ; see · Warning messages are...
Read more >Developer's tips for documenting matplotlib
The documentation for matplotlib is generated from reStructuredText using the Sphinx documentation generation tool. There are several extra requirements ...
Read more >Workflow commands for GitHub Actions
For example, instead of using code to create an error annotation, as below: ... Disable workflow commands run: | echo '::warning:: This is...
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
I am working on it with @Fiona-cherutto
I want to work on this issue