Skip to content

Commit

Permalink
Update "qt5agg" to "qtagg"
Browse files Browse the repository at this point in the history
In matplotlib, "qt5agg" is just a reference to "qtagg" now.

Let's update ours to "qtagg" so that it doesn't appear that we are
using a qt5-specific import.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Nov 13, 2023
1 parent 0f3ff71 commit 9adf9de
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion hexrdgui/brightness_contrast_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
QDialog, QDialogButtonBox, QMessageBox, QVBoxLayout
)

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure

from hexrdgui.range_widget import RangeWidget
Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/calibration/hedm/calibration_results_dialog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QSizePolicy

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/image_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from PySide6.QtCore import QThreadPool, QTimer, Signal, Qt
from PySide6.QtWidgets import QFileDialog, QMessageBox

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure
from matplotlib.lines import Line2D
from matplotlib.patches import Circle
Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/indexing/fit_grains_results_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from mpl_toolkits.mplot3d import Axes3D, proj3d # noqa: F401 unused import
import matplotlib
import matplotlib.ticker as ticker
from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure

from PySide6.QtCore import QObject, QTimer, Qt, Signal
Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/indexing/indexing_results_dialog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import copy

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/indexing/ome_maps_viewer_dialog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
from pathlib import Path

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure
import numpy as np
import yaml
Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/indexing/view_spots_dialog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QSizePolicy

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/navigation_toolbar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from matplotlib import rc_context
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT
from matplotlib.backends.backend_qtagg import NavigationToolbar2QT

from hexrdgui.utils import wrap_with_callbacks

Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/snip_viewer_dialog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path

import h5py
from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas
from matplotlib.figure import Figure
import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion hexrdgui/zoom_canvas.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from PySide6.QtCore import Signal, QTimer
from PySide6.QtWidgets import QSizePolicy

from matplotlib.backends.backend_qt5agg import FigureCanvas
from matplotlib.backends.backend_qtagg import FigureCanvas

from matplotlib.figure import Figure
from matplotlib.widgets import Cursor
Expand Down

0 comments on commit 9adf9de

Please sign in to comment.