
    OwgM                     d    d dl Z d dlmZ d dlmZmZmZ  e j                  d      Z G d d      Z	y)    N)	DataFrame)_check_plot_works_check_ticks_props_gen_two_subplotszmatplotlib.pyplotc                       e Zd Zd Zd Zd Zy)
TestCommonc                 z   t        g dg dd      }t        |j                  d      }|j                  j	                  d       d}t        j                  t        |      5  t        |d	
       d d d        t        j                  t        |      5  t        |d	       d d d        t        j                  t        |      5  t        |d	       d d d        t        j                  t        |      5  t        |d	       d d d        y # 1 sw Y   xY w# 1 sw Y   xxY w# 1 sw Y   SxY w# 1 sw Y   y xY w)N)r      r   r
         )ba   )rot)rotationzexpected 0.00000 but got )matchr   )xrot)
xlabelsize)yrot)
ylabelsize)	r   r   plotyaxisset_tick_paramspytestraisesAssertionErrorr   )selfdfaxmsgs       X/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/plotting/test_common.pytest__check_ticks_propsz"TestCommon.test__check_ticks_props   s    YY78rwwB/
  " -)]]>5 	+r*	+]]>5 	1ra0	1]]>5 	+r*	+]]>5 	1ra0	1 	1	+ 	+	1 	1	+ 	+	1 	1s0   #DDD%6D1DD"%D.1D:c                 f   t         j                         }t        d |d      }t        |       |j	                         g k(  sJ t        |       |j	                         }t        |      dk(  sJ t        |d   j                         j                         d d       }|dxx   dz  cc<   |g dk(  sJ y )Nc                       y )N )kwargss    r"   <lambda>z;TestCommon.test__gen_two_subplots_with_ax.<locals>.<lambda>   s        test)ffigr    r
   r   )r   r
   r   )	pltgcfr   nextget_axeslenlistget_subplotspecget_geometry)r   r,   genaxessubplot_geometrys        r"   test__gen_two_subplots_with_axz)TestCommon.test__gen_two_subplots_with_ax   s    ggi"7SVLS	||~###S	||~4yA~~Q 7 7 9 F F H" MN!9,,,r)   c                 &   t         j                         }|j                  d      }g d}g d}|d   j                  ||      }|d   j                  ||       |j	                  ||d   |d   gd       t        |      j                  |d          y )	Nz+
            AB
            CC
            r   ABright)r    locationC)r    )r.   figuresubplot_mosaicscattercolorbarr   r   )r   r,   r7   xycs0s         r"   test_colorbar_layoutzTestCommon.test_colorbar_layout+   s    jjl!!
 3i1%S	!QSd3ic3gF!T#Y'r)   N)__name__
__module____qualname__r#   r9   rG   r&   r)   r"   r   r      s    1-(r)   r   )
r   pandasr   pandas.tests.plotting.commonr   r   r   importorskipr.   r   r&   r)   r"   <module>rN      s4       f-./( /(r)   