Skip to content

Commit

Permalink
Drop fallback support for matplotlib <3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Apr 5, 2024
1 parent 21fee89 commit 0967e12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/lsst/display/matplotlib/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ def __init__(self, display, verbose=False,
fig.sca(axis) # make axis active
disp.mtv(exp)
"""
try:
fig_class = matplotlib.figure.FigureBase
except AttributeError:
fig_class = matplotlib.figure.Figure
fig_class = matplotlib.figure.FigureBase

This comment has been minimized.

Copy link
@timj

timj Apr 5, 2024

Member

It's not clear that fig_class is needed -- can use FigureBase directly in the next line.


if isinstance(display.frame, fig_class):
figure = display.frame
Expand Down

0 comments on commit 0967e12

Please sign in to comment.