# pylint: disable=W0614,W0401,W0611,W0622
# flake8: noqa

from .. import _load_lazy


class mpl_backend():
    """A backend for matplotlib, which will be lazy loaded eventually."""
    def __init__(self):
        self.pyplot = _load_lazy('matplotlib.pyplot')
        self.ticker = _load_lazy('matplotlib.ticker')
        self.cm = _load_lazy('matplotlib.cm')


plt = mpl_backend()

@@ -78,17 +78,16 @@
 d_lazy%0A%0A
-%0A
 class mp
@@ -200,24 +200,39 @@
 lf):%0A       
+ pass%0A        #
  self.pyplot
@@ -269,24 +269,26 @@
 ot')%0A       
+ #
  self.ticker
@@ -329,16 +329,18 @@
 %0A       
+ #
  self.cm
@@ -371,16 +371,295 @@
 b.cm')%0A%0A
+    @property%0A    def pyplot(self):%0A        import matplotlib.pyplot as plt%0A        return plt%0A%0A    @property%0A    def ticker(self):%0A        import matplotlib.ticker as tick%0A        return tick%0A%0A    @property%0A    def cm(self):%0A        import matplotlib.cm as cm%0A        return cm%0A
 %0Aplt = m

fix lazy loading for 3.6