ó
jÜxec           @   s3  d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d l m	 Z	 d  d l
 m Z d  d	 l m Z d  d
 l m Z d  d l m Z d  d l m Z d  d l m Z d  d l m Z d  d l j Z d  d l Z d  d l Z d  d l m Z m Z e d d   Z d S(   i˙˙˙˙(   t   Logo(   t   Glyph(   t   list_font_names(   t   transform_matrix(   t   sequence_to_matrix(   t   alignment_to_matrix(   t   saliency_to_matrix(   t   validate_matrix(   t   list_color_schemes(   t   list_example_matrices(   t   get_example_matrix(   t   list_example_datafiles(   t   open_example_datafile(   t	   run_testsN(   t   checkt   handle_errorst   fig1bc      	   B   s(  d e  j j e  } e  j |  } g  | D]( } e j d |  r, d | | f ^ q, } i  } x/ | D]' } | j d  d d  } | | | <qg We |  | j	   k d e
 |   | j	   f  | |  } e | d  . } | j   }	 d	 }
 d
 | |
 |	 |
 f GHWd QXe |  j   d Ue j   S(   sŕ   
    Performs a demonstration of the Logomaker software.

    parameters
    -----------

    name: (str)
        Must be one of {'fig1b', 'fig1c', 'fig1d', 'fig1e', 'fig1f', 'logo'}.

    returns
    -------
    None.

    s   %s/exampless   demo_.*\.pys   %s/%st   _i˙˙˙˙iý˙˙˙s)   name = %s is not valid. Must be one of %st   rs=   -------------------------------------------------------------s   Running %s:
%s
%s
%sN(   t   ost   patht   dirnamet   __file__t   listdirt   ret   matcht   splitR   t   keyst   reprt   opent   readt   pltt   gcf(   t   namet   example_dirt   all_base_file_namest	   temp_namet   example_file_namest   examples_dictt	   file_namet   keyt   ft   contentt   line(    (    s7   /tmp/pip-install-l3LICk/logomaker/logomaker/__init__.pyt   demo   s(    
(
(   t   logomaker.src.LogoR    t   logomaker.src.GlyphR   R   t   logomaker.src.matrixR   R   R   R   t   logomaker.src.validateR   t   logomaker.src.colorsR   t   logomaker.src.examplesR	   R
   R   R   t*   logomaker.tests.functional_tests_logomakerR   t   matplotlib.pyplott   pyplotR   R   R   t   logomaker.src.error_handlingR   R   R,   (    (    (    s7   /tmp/pip-install-l3LICk/logomaker/logomaker/__init__.pyt   <module>   s&   