o
    Uh6                     @   sF   d dl Zd dlZd dlmZ d dlmZ ddgZ	dddZ
dd ZdS )    Npalplotdogplot   c                 C   s   t | }tjdd|| |fd\}}|jt|d|tj	t
| ddd |t|d  |ddg |dd	 t|D  |jt  d
S )zPlot the values in a color palette as a horizontal array.

    Parameters
    ----------
    pal : sequence of matplotlib colors
        colors, i.e. as returned by seaborn.color_palette()
    size :
        scaling factor for size of plot

    r   )figsizenearestauto)cmapinterpolationaspectg      ?g      c                 S   s   g | ]}d qS )  ).0_r   r   D/var/www/vscode/kcb/lib/python3.10/site-packages/seaborn/miscplot.py
<listcomp>   s    zpalplot.<locals>.<listcomp>N)lenpltsubplotsimshownparangereshapemplcolorsListedColormaplist
set_xticks
set_yticksset_xticklabelsrangeyaxisset_major_locatortickerNullLocator)palsizenr   axr   r   r   r   	   s   c            
      O   s   ddl m} ddlm} d}tjdd}|||| }t	
|}t	jddd	\}}	|ddd
d
 |	| |	  dS )zWho's a good boy?r   )urlopen)BytesIOz@https://github.com/mwaskom/seaborn-data/raw/master/png/img{}.png      )   r,   d   )r   dpir   N)urllib.requestr(   ior)   r   randomrandintformatreadr   imreadr   subplots_adjustr   set_axis_off)
r   __r(   r)   urlpicdataimgfr'   r   r   r   r   !   s   

)r   )numpyr   
matplotlibr   matplotlib.pyplotpyplotr   matplotlib.tickerr"   __all__r   r   r   r   r   r   <module>   s    
