
    Gd[              	       T   d Z ddlmZ ddlZddlZddddZd e                                D             Z	 ej
                    Ze                    de	d         	            ed
d          D ]iZe                    de e	d         	            ed
d          D ]:Ze                    d ee          z   dz    ee          z   e	d         	           ;je                    dd           e                    dd           e                    dd            ed
d          D ]NZ ed
d          D ]?Ze                    d ee          z   d ee          z   dz    ee          z              @O ej        ed          Z ej                    \  ZZ ej        eeedddd           ej        j        Zej                                        j        Ze                                 d
         e                                 d         z
  dz  Z!e!dz  Z"ej#        D ]{Z$ eee$                   \  Z%Z& ee%e&f          \  Z'Z( ej)        e'e"z
  e(e"z
  e!e!g          Z*e*+                    ej#        e$         d                    e*,                    d           | ej-                     dS )z
=================
Custom node icons
=================

Example of using custom icons to represent nodes with matplotlib.

Images for node icons courtesy of www.materialui.co
    Nzicons/router_black_144x144.pngzicons/switch_black_144x144.pngz icons/computer_black_144x144.png)routerswitchPCc                 T    i | ]%\  }}|t           j                            |          &S  )PILImageopen).0kfnames      Ashare/doc/networkx-3.1/examples/drawing/plot_custom_node_icons.py
<dictcomp>r      s,    	A	A	Axq%!SY^^E""	A	A	A    r   )image      switch_r   PC__r   switch_1switch_2switch_3iN'_g)seedT-   )posaxarrows
arrowstylemin_source_marginmin_target_marging?g       @r   off).__doc__matplotlib.pyplotpyplotpltnetworkxnxr   iconsitemsimagesGraphGadd_noderangeijstradd_edgeuvspring_layoutr   subplotsfigr   draw_networkx_edges	transData	transform	tr_figuretransFigureinvertedtr_axesget_xlim	icon_sizeicon_centernodesnxfyfxayaaxesaimshowaxisshowr   r   r   <module>rO      sB               



 /.
,	 	 
B	A5;;==	A	A	A BHJJ 

86(+
 , , ,	q! F FAJJ}}}F8$4J555U1a[[ F F	

533q66>C'##a&&0t
EEEEF 

8Z       

8Z       

8Z      	q! F FAU1a[[ F F	

9ss1vv%uss1vv~';cc!ff'DEEEEF bqz***
#,..R
  	    L"	
/
"
"
$
$
. [[]]1a 00E9	#o 
  AYs1vFBWb"XFB"{"B$4iKLLAHHQWQZ !!!FF5MMMM 




r   