
     i                         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dS )    N)image_comparison)Subplot)FloatingAxesGridHelperCurveLinear)FixedLocator)angle_helperc                  z    t          j        d          } t          | d          }|                     |           d S )N   r   figsizeo   )pltfigurer   add_subplotfigaxs     z/srv/www/vhosts/g4struct/public_html/venv/lib/python3.11/site-packages/mpl_toolkits/axisartist/tests/test_floating_axes.pytest_subplotr      s;    
*V
$
$
$C	c		BOOB    zcurvelinear3.pngdefaultr   )styletolc            	      F   t          j        d          } t          j                                        t
          j        dz  d          t          j        	                    d          z   }t          |dt          j        d          t          g d	          t          j                    d 
          }|                     t           |          }d}t          j                                        dd|z            |z   }t          |ddd|z  d|z  ft          g d                    }|                    d|          x|j        d<   }|j        d         j                            d           |j        d         j                            d           |j        d                             d           |                    dd|d          }||j        d<   |                    dd           |j                            d           |j                            d           |j                            d           |                    |          }g d g d!}
}	|                    |	|
           |                    |	|
d"          \  }|                    |j                   d S )#Nr
   r         Fapply_theta_transforms)r   h  
                     r!   extremesgrid_locator1grid_locator2tick_formatter1tick_formatter2
axes_classgrid_helperr!   r   r    r"   )   <   Z   )r*   r,   right)axesleftTest 1Test 2)r7   r5      bottomr6   axis_directionzTalllabelz = ?0.5C   r4   K   r2   r%   r   r(   r&   k-)r   r   mtransformsAffine2Dscalenppimprojections	PolarAxesPolarTransformr   r   
LocatorDMSr   FormatterDMSr   r   new_fixed_axisaxisrA   set_textset_visiblenew_floating_axistoggleline	set_colorget_aux_axesscatterplotset_clip_pathpatch)r   trr1   ax1r_scaletr2grid_helper2rT   ax2xxyyls               r   test_curvelinear3ri      s   
*V
$
$
$C


 
 
&
&rus{A
6
6

 
/
/u
/
M
MNB'
 "-b11"#3#3#344$133  K //\{/
K
KCG


 
 
&
&q!g+
6
6
;C(S"w,G4"<<<002 2 2L
  ,::7:MMMCHWHV##H---HW$$X...H_))%000((AC8@ ) B BDCHSMKKDK%%%J   J4   I


2

C|||BKKB	"b$		BAOOCIr   zcurvelinear4.pngg?c            	         dt           j        d<   t          j        d          } t          j                                        t          j        dz  d          t          j	        
                    d          z   }t          |d	t          j        d
          t          g d          t          j                    d           }|                     t"          |          }|                                 |j        d         j                            d           |j        d         j                            d           |j        d                             d           |                    dd|d          }||j        d<   |                    dd           |j                            d           |j                            d           |j                            d           |j                            d           |                    |          }g dg d}}|                    ||           |                    ||d          \  }|                    |j                    d S )Nr'   ztext.kerning_factorr
   r   r   r   Fr   )x   r2   r!   r   r   r$   r)   r/   r7   r8   r5   r9   topF   r;   r<   r>   Tr?   rB   rC   rD   rG   rH   )!r   rcParamsr   rI   rJ   rK   rL   rM   rN   rO   rP   r   r   rQ   r   rR   r   r   clearrT   rA   rU   rV   rW   rX   set_axis_directionrY   rZ   r[   r\   r]   r^   r_   )	r   r`   r1   ra   rT   re   rf   rg   rh   s	            r   test_curvelinear4rq   D   s0    +,CL&'
*V
$
$
$C


 
 
&
&rus{A
6
6

 
/
/u
/
M
MNB'
!"-a00"#3#3#344$133  K //\{/
K
KCIIKKKHV##H---HW$$X...HUO&&&((BS8@ ) B BDCHSMKKDK%%%J!!%(((J   J4   I


2

C|||BKKB	"b$		BAOOCIr   c                      t          j                    } t          | d          }|                     |           |                    ddd          |j        d<   |j        d         j        dk    sJ d S )Nr   r   r   r7   )	nth_coordvaluer=   y)r   r   r   r   rW   rT   _axis_directionr   s     r   test_axis_directionrw   l   su    
*,,C	c		BOOB''!17= ( ? ?BGCL73<'6111111r   )numpyrL   matplotlib.pyplotpyplotr   matplotlib.projectionsprojectionsrN   matplotlib.transforms
transformsrI   matplotlib.testing.decoratorsr   !mpl_toolkits.axisartist.axislinesr   %mpl_toolkits.axisartist.floating_axesr   r   #mpl_toolkits.axisartist.grid_finderr   mpl_toolkits.axisartistr   r   ri   rq   rw    r   r   <module>r      sG             - - - - - - + + + + + + : : : : : : 5 5 5 5 5 5) ) ) ) ) ) ) ) < < < < < < 0 0 0 0 0 0   %&iQ???( ( @?(Z %&iSAAA$ $ BA$N2 2 2 2 2r   