# -*- coding: utf-8 -*-
from pkg_resources import DistributionNotFound, get_distribution

import matplotlib as mpl

from mpl_tools.ax_placement import *
from mpl_tools.log_toggler import *
from mpl_tools.misc import *

# Change here if project is renamed and does not equal the package name
dist_name = 'mpl-tools'

if mpl.get_backend()=="Qt5Agg":
    print("Warning: Qt5Agg is used, "
    "which has been known to cause slow-down with " + dist_name)

try:
    __version__ = get_distribution(dist_name).version
except DistributionNotFound:
    __version__ = 'unknown'
finally:
    del get_distribution, DistributionNotFound, dist_name
