Skip to content

Commit

Permalink
fix: for matplotlib 3.8.x (#1506)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Quemy <[email protected]>
  • Loading branch information
melanopsis and aquemy authored Dec 5, 2023
1 parent f4e31ac commit f978af0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
scipy>=1.4.1, <1.12
pandas>1.1, <2.1, !=1.4.0
matplotlib>=3.2, <=3.7.3
matplotlib>=3.2, <3.9
pydantic>=2
PyYAML>=5.0.0, <6.1
jinja2>=2.11.1, <3.2
Expand Down
3 changes: 1 addition & 2 deletions src/ydata_profiling/visualisation/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import Any

import matplotlib
import matplotlib.cbook
import seaborn as sns
from pandas.plotting import (
deregister_matplotlib_converters,
Expand Down Expand Up @@ -82,5 +81,5 @@ def manage_matplotlib_context() -> Any:
finally:
deregister_matplotlib_converters() # revert to original unit registries
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=matplotlib.cbook.mplDeprecation)
warnings.filterwarnings("ignore", category=matplotlib.MatplotlibDeprecationWarning)
matplotlib.rcParams.update(originalRcParams) # revert to original rcParams

0 comments on commit f978af0

Please sign in to comment.