Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib deprecation errors #524

Closed
HaleySchuhl opened this issue Feb 14, 2020 · 2 comments
Closed

Matplotlib deprecation errors #524

HaleySchuhl opened this issue Feb 14, 2020 · 2 comments
Assignees
Labels
enhancement Enhancements to existing features Epic Discussions and broad multi-issue ideas
Projects
Milestone

Comments

@HaleySchuhl
Copy link
Contributor

HaleySchuhl commented Feb 14, 2020

Start a discussion about anything you would like
Functions that are using matplotlib to plot histograms often give verbose depreciation errors. While these don't inherently harm anything they are annoying and can potentially raise the concern that something went wrong while using the function even though it is working fine. I found a way to suppress these warning messages.

import warnings
import matplotlib.cbook
warnings.filterwarnings("ignore",category=matplotlib.cbook.mplDeprecation)

Maybe this gets wrapped in a try block. Objections?

@HaleySchuhl HaleySchuhl self-assigned this Feb 14, 2020
@HaleySchuhl HaleySchuhl added enhancement Enhancements to existing features Epic Discussions and broad multi-issue ideas labels Feb 14, 2020
@HaleySchuhl HaleySchuhl added this to New Issues in PlantCV3 via automation Feb 14, 2020
@dschneiderch
Copy link
Collaborator

yeah, super annoying. isn't the issue plotnine though?
I filter the plotnine warnings in my scripts.

@nfahlgren
Copy link
Member

I think this will be fixed by switching the plotting backend in v4.x.

@dschneiderch dschneiderch changed the title Matplotlib depreciation errors Matplotlib deprecation errors Apr 22, 2020
@nfahlgren nfahlgren moved this from New Issues to Discussion in PlantCV3 Jul 22, 2020
@nfahlgren nfahlgren removed this from Discussion in PlantCV3 Jul 22, 2020
@nfahlgren nfahlgren added this to New Issues in PlantCV4 via automation Jul 22, 2020
@nfahlgren nfahlgren added this to the PlantCV v4.x milestone Jul 22, 2020
@nfahlgren nfahlgren moved this from New Issues to Discussion in PlantCV4 Jul 22, 2020
PlantCV4 automation moved this from Discussion to Done Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements to existing features Epic Discussions and broad multi-issue ideas
Projects
PlantCV4
  
Done
Development

No branches or pull requests

3 participants