§
    õŽ’j(  ã                   óN   — d dl Zd dlZd dlZd dlmZ d dlmZ	 d dl
mZ d„ Zd„ ZdS )é    Nc                 ó¾   — t          j        |¦  «        sDt          |t          j        j        ¦  «        r't          |¦  «        dk    rt          | › d�¦  «        ‚dS dS dS )z0Raise a TypeError if an empty sequence is passedr   z must not be an empty sequenceN)ÚcbookÚis_scalar_or_stringÚ
isinstanceÚcollectionsÚabcÚSizedÚlenÚ	TypeError)ÚkeyÚvalues     úGC:\Projects\DSCons\.venv\Lib\site-packages\matplotlib\_style_helpers.pyÚcheck_non_emptyr      sq   € åÔ% eÑ,Ô,ð @Ý�u�kœoÔ3Ñ4Ô4ð@Ý9<¸U¹¼Àqº¸Ý˜3Ð>Ð>Ð>Ñ?Ô?Ð?ð@ð @ð @ð @Ø9H¸ó    c                 óB  ‡— i Ši }|                       ¦   «         D ]õ\  }}|dv ri|�t          j        |d¦  «        rt          j        |¦  «        ‰|<   Œ8t          ||¦  «         t          j        t          j        |¦  «        ¦  «        ‰|<   Œr|dv r:t          ||¦  «         t          j        t          j
        |¦  «        ¦  «        ‰|<   Œ°|dk    r:t          ||¦  «         t          j        t          j        |¦  «        ¦  «        ‰|<   Œð|||<   Œöˆfd„}| |¦   «         fS )a~  
    Helper for handling style sequences (e.g. facecolor=['r', 'b', 'k']) within plotting
    methods that repeatedly call other plotting methods (e.g. hist, stackplot).  Remove
    style keywords from the given dictionary.  Return the reduced dictionary together
    with a generator which provides a series of dictionaries to be used in each call to
    the wrapped function.
    )Ú	facecolorÚ	edgecolorNÚnone)ÚhatchÚ	linewidthÚ	linestylec               3   óL   •K  — 	 d„ ‰                       ¦   «         D ¦   «         V — Œ!)NTc                 ó4   — i | ]\  }}|t          |¦  «        “ŒS © )Únext)Ú.0r   Úvals      r   ú
<dictcomp>z6style_generator.<locals>.style_gen.<locals>.<dictcomp>1   s$   € ÐGÐGÐG¡h c¨3�3�˜S™	œ	ÐGÐGÐGr   )Úitems)Úkw_iteratorss   €r   Ú	style_genz"style_generator.<locals>.style_gen/   s9   øè è € ð	HØGÐG°,×2DÒ2DÑ2FÔ2FÐGÑGÔGÐGÐGÐGð	Hr   )r   r   Ú_str_lower_equalÚ	itertoolsÚrepeatr   ÚcycleÚmcolorsÚto_rgba_arrayÚnpÚ
atleast_1dÚmlinesÚ_get_dash_patterns)ÚkwÚremaining_kwr   r   r!   r    s        @r   Ústyle_generatorr.      sP  ø€ ð €LØ€LØ—h’h‘j”jð &ð &‰
ˆˆUØÐ,Ð,Ð,Øˆ}¥Ô 6°u¸fÑ EÔ Eˆ}Ý$-Ô$4°UÑ$;Ô$;�˜SÑ!Ð!å  UÑ+Ô+Ð+Ý$-¤OµGÔ4IÈ%Ñ4PÔ4PÑ$QÔ$Q�˜SÑ!Ð!àÐ*Ð*Ð*Ý˜C Ñ'Ô'Ð'Ý )¤µ´¸eÑ0DÔ0DÑ EÔ EˆL˜ÑÐà�KÒÐÝ˜C Ñ'Ô'Ð'Ý )¤µÔ0IÈ%Ñ0PÔ0PÑ QÔ QˆL˜ÑÐð !&ˆL˜ÑÐðHð Hð Hð Hð Hð ˜˜™œÐ$Ð$r   )Úcollections.abcr   r#   Únumpyr(   Úmatplotlib.cbookr   Úmatplotlib.colorsÚcolorsr&   Úmatplotlib.linesÚlinesr*   r   r.   r   r   r   ú<module>r6      sŠ   ðØ Ð Ð Ð Ø Ð Ð Ð à Ð Ð Ð à  Ð  Ð  Ð  Ð  Ð  Ø #Ð #Ð #Ð #Ð #Ð #Ø !Ð !Ð !Ð !Ð !Ð !ð@ð @ð @ð!%ð !%ð !%ð !%ð !%r   