ó
±éRc           @  sr   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l m Z d d d d d g Z e j ƒ  Z	 d	 „  Z
 d S(
   iÿÿÿÿ(   t   print_functionN(   t   interactive_bkt   backendt   showt   draw_if_interactivet   new_figure_managert   backend_versionc    	      C  s	  t  j d ƒ r t  d }  n& d t  }  |  j ƒ  }  d |  j ƒ  }  t |  t ƒ  t ƒ  |  g d ƒ } | j } d „  } d „  } t | d d	 ƒ } t | d
 | ƒ } t | d | ƒ } t  j ƒ  d k rß | j } t	 j
 d ƒ n  t j j d t  | f ƒ | | | | f S(   sA   return new_figure_manager, draw_if_interactive and show for pylabs	   module://i	   t   backend_s   matplotlib.backends.%si    c          _  sK   t  j ƒ  } | j j j } | d k rG t j d t t j	 ƒ  f ƒ n  d  S(   Ns   <stdin>s   <ipython console>s•   
Your currently selected backend, '%s' does not support show().
Please select a GUI backend in your matplotlibrc file ('%s')
or with matplotlib.use()(   s   <stdin>s   <ipython console>(
   t   inspectt   currentframet   f_backt   f_codet   co_filenamet   warningst   warnR   t
   matplotlibt   matplotlib_fname(   t   argst   kwargst   framet   fname(    (    sV   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/__init__.pyt   do_nothing_show$   s    c          _  s   d  S(   N(    (   R   R   (    (    sV   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/__init__.pyt
   do_nothing-   s    R   t   unknownR   R   t   wxt   wxaggt   Toolbars   backend %s version %s(   s   wxs   wxagg(   R   t
   startswitht   lowert
   __import__t   globalst   localsR   t   getattrR   t   __all__t   appendR   t   verboset   report(	   t   backend_namet   backend_modR   R   R   R   R   R   R   (    (    sV   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/__init__.pyt   pylab_setup   s$    
					(   t
   __future__R    R   R   R   t   matplotlib.rcsetupR   R!   t   get_backendR   R'   (    (    (    sV   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/__init__.pyt   <module>   s   	