
    \!h                     <    S SK rS SKJr  S SKJr         SS jrg)    N)subplots)Tablec                    [        US9u  pU	R                  5         [        U	/ SQS9n
U R                  u  pUc  [        R
                  " U5      nUc  [        R
                  " U5      nSU-  SU-  p[        R                  " U 5       H,  u  u  nnnUU-   S-  nU
R                  UUUUUU-  SUU   S9  M.     [        U5       H  u  nnU
R                  USUUUS	S
S
S9  M     [        U5       H  u  nnU
R                  SUUUS-  USS
S
S9  M!     [        R                  " U 5       H>  u  u  nnnUU-   S-  nU
R                  UU4   R                  R                  UU   5        M@     U	R                  U
5        U
R                  U5        U$ )a  
Plot a checkerboard table / heatmap via matplotlib.

Parameters
-----------
ary : array-like, shape = [n, m]
    A 2D Nnumpy array.
cell_colors : tuple or list (default: ('white', 'black'))
    Tuple or list containing the two colors of the
    checkerboard pattern.
font_colors : tuple or list (default: ('black', 'white'))
    Font colors corresponding to the cell colors.
figsize : tuple (default: (2.5, 2.5))
    Height and width of the figure
fmt : str (default: '%.1f')
    Python string formatter for cell values.
    The default '%.1f' results in floats with 1 digit after
    the decimal point. Use '%d' to show numbers as integers.
row_labels : list (default: None)
    List of the row labels. Uses the array row
    indices 0 to n by default.
col_labels : list (default: None)
    List of the column labels. Uses the array column
    indices 0 to m by default.
fontsize : int (default: None)
    Specifies the font size of the checkerboard table.
    Uses matplotlib's default if None.

Returns
-----------
fig : matplotlib Figure object.

Examples
-----------
For usage examples, please see
https://rasbt.github.io/mlxtend/user_guide/plotting/checkerboard_plot/

)figsize)r   r      r   )bboxg      ?   center)textloc	facecolorrightnone)r   r   	edgecolorr   g       @)r   set_axis_offr   shapenparangendenumerateadd_cell	enumerate_cells_text	set_color	add_tableset_fontsize)arycell_colorsfont_colorsfmtr   
row_labels
col_labelsfontsizefigaxtbn_rowsn_colswidthheightrow_idxcol_idxcell_validxlabels                       pC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\mlxtend/plotting/checkerboard.pycheckerboard_plotr2      s   b w'GCOO	r	%BYYNFYYv&
YYv&
&L#,6(*s(;$'H A%
x!#& 	 	
 )< $J/
 	 		
 0 $J/
SL 	 		
 0 )+s(;$'H A%
		7G$%++55k#6FG )< LLOOHJ    ))whiteblack)r5   r4   z%.1fNNNN)numpyr   matplotlib.pyplotr   matplotlib.tabler   r2    r3   r1   <module>r:      s-     & "
 #"ir3   