Skip to content

Commit

Permalink
fix warnings use
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Dec 28, 2023
1 parent fc64553 commit af80265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upsetplot/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ def make_grid(self, fig=None):

window_extent_args = {}
if RENDERER_IMPORTED:
with warnings.catch_warnings(DeprecationWarning):
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
window_extent_args["renderer"] = get_renderer(fig)
figw = self._reorient(fig.get_window_extent(**window_extent_args)).width

Expand Down

0 comments on commit af80265

Please sign in to comment.