import matplotlib.widgets as mwidgets

if not hasattr(mwidgets, 'AxesWidget'):
    branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
    msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
    raise ImportError(msg)


from .rectangle_selector import RectangleSelector
from .slider import Slider


__all__ = ['RectangleSelector', 'Slider']


import matplotlib.widgets as mwidgets

if not hasattr(mwidgets, 'AxesWidget'):
    version = "(github master; after March 16, 2012)"
    msg = "mpltools.widgets requires recent version of Matplotlib %s" % version
    raise ImportError(msg)


from .rectangle_selector import RectangleSelector
from .slider import Slider


__all__ = ['RectangleSelector', 'Slider']


Update MPL version requirement for `widgets`.
Update MPL version requirement for `widgets`.

  import matplotlib.widgets as mwidgets
  
  if not hasattr(mwidgets, 'AxesWidget'):
-     branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
+     version = "(github master; after March 16, 2012)"
-     msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
+     msg = "mpltools.widgets requires recent version of Matplotlib %s" % version
      raise ImportError(msg)
  
  
  from .rectangle_selector import RectangleSelector
  from .slider import Slider
  
  
  __all__ = ['RectangleSelector', 'Slider']
  
  
Update MPL version requirement for `widgets`.
## Code Before:
import matplotlib.widgets as mwidgets

if not hasattr(mwidgets, 'AxesWidget'):
    branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
    msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
    raise ImportError(msg)


from .rectangle_selector import RectangleSelector
from .slider import Slider


__all__ = ['RectangleSelector', 'Slider']


## Instruction:
Update MPL version requirement for `widgets`.
## Code After:
import matplotlib.widgets as mwidgets

if not hasattr(mwidgets, 'AxesWidget'):
    version = "(github master; after March 16, 2012)"
    msg = "mpltools.widgets requires recent version of Matplotlib %s" % version
    raise ImportError(msg)


from .rectangle_selector import RectangleSelector
from .slider import Slider


__all__ = ['RectangleSelector', 'Slider']

