-
Peterson, Peter authored
This includes a script that will change sourcefiles. Make sure to review the changes before committing them.
Peterson, Peter authoredThis includes a script that will change sourcefiles. Make sure to review the changes before committing them.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
MPLwidgets.py 703 B
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import (absolute_import, division, print_function)
from gui_helper import set_matplotlib_backend
backend = set_matplotlib_backend() # must be at the top of this file
if backend == 'Qt4Agg':
from matplotlib.backends.backend_qt4agg import * # noqa
elif backend == 'Qt5Agg':
from matplotlib.backends.backend_qt5agg import * # noqa
else:
raise RuntimeError('Unrecognized backend {}'.format(backend))