Skip to content

Commit

Permalink
Merge pull request yt-project#4882 from chrishavlin/qtagg_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Apr 24, 2024
2 parents d046de2 + eb4164c commit 84d868b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions yt/visualization/base_plot_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class FormatKwargs(TypedDict):
"GTKAgg": ["backend_gtkagg", "FigureCanvasGTKAgg", None],
"GTKCairo": ["backend_gtkcairo", "FigureCanvasGTKCairo", None],
"MacOSX": ["backend_macosx", "FigureCanvasMac", "FigureManagerMac"],
"Qt4Agg": ["backend_qt4agg", "FigureCanvasQTAgg", None],
"Qt5Agg": ["backend_qt5agg", "FigureCanvasQTAgg", None],
"QtAgg": ["backend_qtagg", "FigureCanvasQTAgg", None],
"TkAgg": ["backend_tkagg", "FigureCanvasTkAgg", None],
"WX": ["backend_wx", "FigureCanvasWx", None],
"WXAgg": ["backend_wxagg", "FigureCanvasWxAgg", None],
Expand Down Expand Up @@ -155,10 +155,7 @@ def _get_canvas_classes(self):
else:
key = "agg"

try:
module, fig_canvas, fig_manager = BACKEND_SPECS[key]
except KeyError:
return
module, fig_canvas, fig_manager = BACKEND_SPECS[key]

mod = __import__(
"matplotlib.backends",
Expand Down

0 comments on commit 84d868b

Please sign in to comment.