
    G8cQ                         d dl Zd dlmZ d dlmZ d dlm	Z
 d dlmZ d dlmZ d dlmZmZ d dlmZ d dlmZ d Z edgd	d
      d        Z edgd	d      d        Zd Zy)    N)image_comparison)Subplot)FloatingSubplotGridHelperCurveLinear)FixedLocator)angle_helperc                  j    t        j                  d      } t        | d      }| j                  |       y )N   r   figsizeo   )pltfigurer   add_subplotfigaxs     R/usr/lib/python3/dist-packages/mpl_toolkits/tests/test_axisartist_floating_axes.pytest_subplotr      s(    
**V
$C	c	BOOB    zcurvelinear3.pngdefaultr   )styletolc                  :   t        j                  d      } t        j                         j	                  t
        j                  dz  d      t        j                  j                         z   }t        j                  d      }t        j                         }t        g d      }t        |d|||d       }t        | d	|
      }| j!                  |       d}t        j                         j	                  dd|z        |z   }t        g d      }t        |ddd|z  d|z  f|      }	|	j#                  d|      x|j$                  d<   }
|j$                  d   j&                  j)                  d       |j$                  d   j&                  j)                  d       dD ]   }|j$                  |   j+                  d       " |j-                  dd|d      }
|
|j$                  d<   |
j/                  dd       |
j&                  j)                  d       |
j&                  j+                  d       |
j0                  j3                  d       |j5                  |      }g d g d!}}|j7                  ||       |j9                  ||d"      \  }|j;                  |j<                         y )#Nr
   r                        
   )r   h  r$      extremesgrid_locator1grid_locator2tick_formatter1tick_formatter2r   grid_helperr$   )   <   Z   r   r%   r&   )r(   r*   right)axesleftTest 1Test 2)r4   r2   F   bottomr3   axis_directionzTalllabelz = ?0.5C   r1   K   r/   r    r   r#   r!   k-)r   r   mtransformsAffine2Dscalenppimprojections	PolarAxesPolarTransformr   
LocatorDMSFormatterDMSr   r   r   r   new_fixed_axisaxisr>   set_textset_visiblenew_floating_axistoggleline	set_colorget_aux_axesscatterplotset_clip_pathpatch)r   trr)   r+   r*   r.   ax1r_scaletr2grid_helper2rQ   anax2xxyyls                   r   test_curvelinear3rg      sJ   
**V
$C



 
&
&ruus{A
6

 
 
/
/
12B !++B/M"//1O !12M'1@6C6C8G8<>K #s
<COOCG



 
&
&q!g+
6
;C .M(34c35<W3N7DFL
  ,::7:MMCHHWHHV##H-HHW$$X. (  '( ((AC8@ ) BDCHHSMKKDK%JJ JJ4 II


2
C|BKKB	"b$	BAOOCIIr   zcurvelinear4.pngg?c                     dt         j                  d<   t        j                  d      } t        j                         j                  t        j                  dz  d      t        j                  j                         z   }t        j                  d      }t        j                         }t        g d      }t        |d	|||d 
      }t!        | d|      }| j#                  |       |j$                  d   j&                  j)                  d       |j$                  d   j&                  j)                  d       dD ]   }|j$                  |   j+                  d       " |j-                  dd|d      }||j$                  d<   |j/                  dd       |j&                  j1                  d       |j&                  j)                  d       |j&                  j+                  d       |j2                  j5                  d       |j7                  |      }	g dg d}}
|	j9                  |
|       |	j;                  |
|d      \  }|j=                  |j>                         y )Nr"   ztext.kerning_factorr
   r   r   r   r   r   )x   r/   r$   r   r'   r   r-   r4   r5   r2   r6   )topFF   r8   r9   r;   Tr<   rj   r?   r@   rA   rD   rE   ) r   rcParamsr   rF   rG   rH   rI   rJ   rK   rL   rM   r   rN   rO   r   r   r   r   rQ   r>   rR   rS   rT   rU   set_axis_directionrV   rW   rX   rY   rZ   r[   r\   )r   r]   r)   r+   r*   r.   r^   rb   rQ   rc   rd   re   rf   s                r   test_curvelinear4rn   O   s    +,CLL&'
**V
$C



 
&
&ruus{A
6

 
 
/
/
12B !++A.M"//1O !12M'1A6C6C8G8<>K #s
<COOCHHV##H-HHW$$X. (  '( ((BS8@ ) BDCHHSMKKDK%JJ!!%(JJ JJ4 II


2
C|BKKB	"b$	BAOOCIIr   c                      t        j                         } t        | d      }| j                  |       |j	                  ddd      |j
                  d<   |j
                  d   j                  dk(  sJ y )Nr   r   r   r4   )	nth_coordvaluer:   y)r   r   r   r   rT   rQ   _axis_directionr   s     r   test_axis_directionrt      se    
**,C	c	BOOB''!17= ( ?BGGCL773<''6111r   )numpyrI   matplotlib.pyplotpyplotr   matplotlib.projectionsprojectionsrK   matplotlib.transforms
transformsrF   matplotlib.testing.decoratorsr   !mpl_toolkits.axisartist.axislinesr   %mpl_toolkits.axisartist.floating_axesr   r   #mpl_toolkits.axisartist.grid_finderr   mpl_toolkits.axisartistr   r   rg   rn   rt    r   r   <module>r      st      - + : 5 = 0 %&iQ?2 @2n %&iSA, B,^2r   