
    
3j                     L    S SK rS SKrS SKrS SKJr  S SKJr	  S SK
Jr  S rS rg)    Nc                     [         R                  " U5      (       dH  [        U[        R                  R
                  5      (       a  [        U5      S:X  a  [        U  S35      eggg)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     S/home/wildlama/miniconda3/lib/python3.13/site-packages/matplotlib/_style_helpers.pycheck_non_emptyr      sU    %%e,,ukoo3344Uq3%=>?? :I4 -    c                 \  ^ 0 m0 nU R                  5        GH  u  p#US;   at  Ub  [        R                  " US5      (       a  [        R                  " U5      TU'   MF  [        X#5        [        R                  " [        R                  " U5      5      TU'   M  US;   a:  [        X#5        [        R                  " [        R                  " U5      5      TU'   M  US:X  a;  [        X#5        [        R                  " [        R                  " U5      5      TU'   GM  X1U'   GM     U4S jnX" 5       4$ )af  
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	edgecolornone)hatch	linewidth	linestylec               3      >#     TR                  5        V Vs0 s H  u  pU [        U5      _M     snn v   M3  s  snn f 7f)N)itemsnext)r   valkw_iteratorss     r   	style_gen"style_generator.<locals>.style_gen/   s;     2>2D2D2FG2Fhc3S	>2FGG Gs   >8>)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+      s     LLhhj
,,} 6 6uf E E$-$4$4U$;S!+$-OOG4I4I%4P$QS!**C' )e0D ELKC' )0I0I%0P QL !&# !&H $$r   )collections.abcr   r    numpyr%   matplotlib.cbookr   matplotlib.colorscolorsr#   matplotlib.lineslinesr'   r   r+    r   r   <module>r4      s"         # !@!%r   