# Licensed under a 3-clause BSD style license - see LICENSE.rst

try:
    import matplotlib
    HAS_MATPLOTLIB = True
    MPL_VERSION = getattr(matplotlib, '__version__', None)
    if MPL_VERSION is None:
        MPL_VERSION = matplotlib._version.version
    MPL_VERSION = MPL_VERSION.split('.')
    MPL_VERSION = 10 * int(MPL_VERSION[0]) + int(MPL_VERSION[1])
except ImportError:
    HAS_MATPLOTLIB = False
    MPL_VERSION = 0

2b239f6ddf80df0bf7b809e4975e63ad966c3eb9
<mask token>

try:
    import matplotlib
    HAS_MATPLOTLIB = True
    MPL_VERSION = getattr(matplotlib, '__version__', None)
    if MPL_VERSION is None:
        MPL_VERSION = matplotlib._version.version
    MPL_VERSION = MPL_VERSION.split('.')
    MPL_VERSION = 10 * int(MPL_VERSION[0]) + int(MPL_VERSION[1])
except ImportError:
    HAS_MATPLOTLIB = False
    MPL_VERSION = 0

# Licensed under a 3-clause BSD style license - see LICENSE.rst

try:
    import matplotlib
    HAS_MATPLOTLIB = True
    MPL_VERSION = getattr(matplotlib, '__version__', None)
    if MPL_VERSION is None:
        MPL_VERSION = matplotlib._version.version
    MPL_VERSION = MPL_VERSION.split('.')
    MPL_VERSION = 10 * int(MPL_VERSION[0]) + int(MPL_VERSION[1])
except ImportError:
    HAS_MATPLOTLIB = False
    MPL_VERSION = 0
