
    G8c4                     p    d dl Zd dlZd dlmZ d dlmZ d dl	m
Z d dlmZ  edgddd      d	        Zd
 Zy)    N)image_comparison)	ImageGridzimagegrid_cbar_mode.pngTmpl20g333333?)remove_textstyletolc            
         dt         j                  d<   t        j                  t        j                  ddd      t        j                  ddd            \  } }t        j
                  |       t        j                  |      z  dt        j
                  d|z        t        j                  |dz        z  z  z   }t        j                  d	
      }d}dgdz  dgdz  z   }g ddz  }t        |||      D ]  \  }}}	t        ||d||	dd      }
|
\  }}}}|j                  |j                  d       |j                  |j                  d       |j                  t        j                  |      d       |j                  t        j                  |j                  |j                        d       |
D ]D  }|j                  j!                          |j                  j#                  |j$                  d         }F  y )NFzpcolormesh.snapr         y              ?   g       @)   	   )figsize)                        row   column)leftrighttopbottom   )r   r   z20%edge)nrows_ncols	directioncbar_location	cbar_size	cbar_modenipy_spectral)cmaphotjethsv)pltrcParamsnpmeshgridlinspacesincosfigurezipr   imshowrealimagabsarctan2caxclacolorbarimages)XYarrfig	positions
directionscbar_locationspositionr"   locationgridax1ax2ax3ax4axcbs                    C/usr/lib/python3/dist-packages/mpl_toolkits/tests/test_axes_grid.pytest_imagegrid_cbar_mode_edgerN      s    ',CLL"#;;r{{1a,bkk!Q.CDDAq
&&)bffQi
"bffQqSkBFF1R4L&@"A
AC
**W
%C8IhZ\)J79N),z>*3 /%)Xh%+#,'/#(#)+ #S#s

388/
2

388%
(

266#;U
+

2::chh1
>  	/BFFJJL1.B	/#/    c                  8   t        j                         } t        | dd      }|d   }|j                  ddggt        j
                  j                               }|j                  j                  |      }t        |j                  t        j                        sJ y )No   )   rR   )r!   r   rR   r   )norm)r+   r2   r   r4   mplcolorsLogNormr9   r;   
isinstancelocatormticker
LogLocator)r@   rF   rK   imrL   s        rM   test_imagegridr\   2   su    
**,CS#62D	aB	QF8#**"4"4"6	7B		Bbjj'"4"4555rO   )numpyr-   
matplotlibrT   matplotlib.tickertickerrY   matplotlib.testing.decoratorsr   matplotlib.pyplotpyplotr+   mpl_toolkits.axes_grid1r   rN   r\    rO   rM   <module>rf      sC      # :  - ,-"'s< /< /F6rO   