§
    ‹hþh¤  ã                   ó<   — d dl mZ d dlmZ d„ Zd„ Zd„ Zd„ Z	d„ Z
dS )é    Nc                  óª  — t          j        ¦   «         \  } }|                     ddgddgd¬¦  «         |                     ddgddgd¬¦  «         |                     ¦   «          t	          j        | ¦  «        }|j        j        dk    sJ ‚t          |j	        ¦  «        dk    sJ ‚|j	        d         j
        dk    sJ ‚|j	        d         j
        dk    sJ ‚dS )	zGTest that when matplotlib legend is present, Plotly uses native legend.r   é   úLine 1©ÚlabelzLine 2Té   N)ÚpltÚsubplotsÚplotÚlegendÚtlsÚmpl_to_plotlyÚlayoutÚ
showlegendÚlenÚdataÚname©ÚfigÚaxÚ
plotly_figs      ú^/var/www/histauto/venv/lib/python3.11/site-packages/plotly/matplotlylib/tests/test_renderer.pyÚ9test_native_legend_enabled_when_matplotlib_legend_presentr      sÞ   € åŒl‰nŒnG€CˆØ‡G‚GˆQˆFQ˜F (€GÑ+Ô+Ð+Ø‡G‚GˆQˆFQ˜F (€GÑ+Ô+Ð+Ø‡I‚IK„K€KåÔ" 3Ñ'Ô'€Jð ÔÔ'¨4Ò/Ð/Ð/Ð/åˆzŒÑÔ 1Ò$Ð$Ð$Ð$ØŒ?˜1ÔÔ" hÒ.Ð.Ð.Ð.ØŒ?˜1ÔÔ" hÒ.Ð.Ð.Ð.Ð.Ð.ó    c                  ó\  — t          j        ¦   «         \  } }|                     ddgddgdd¬¦  «         |                     ¦   «          t	          j        | ¦  «        }|j        j        dk    sJ ‚t          |j        j	        ¦  «        dk    sJ ‚t          |j        j
        ¦  «        dk    sJ ‚dS )zFTest that fake legend shapes are not created when using native legend.r   r   zo-zData with markersr   TN)r	   r
   r   r   r   r   r   r   r   ÚshapesÚannotationsr   s      r   Ú-test_no_fake_legend_shapes_with_native_legendr      s®   € åŒl‰nŒnG€CˆØ‡G‚GˆQˆFQ˜F˜DÐ(;€GÑ<Ô<Ð<Ø‡I‚IK„K€KåÔ" 3Ñ'Ô'€Jð ÔÔ'¨4Ò/Ð/Ð/Ð/åˆzÔ Ô'Ñ(Ô(¨AÒ-Ð-Ð-Ð-ÝˆzÔ Ô,Ñ-Ô-°Ò2Ð2Ð2Ð2Ð2Ð2r   c                  óä   — t          j        ¦   «         \  } }|                     ddgddgd¬¦  «         t          j        | ¦  «        }t          |j        d¦  «        r|j        j        dk    sJ ‚dS dS )zETest that legend is not enabled when no matplotlib legend is present.r   r   r   r   r   TN)r	   r
   r   r   r   Úhasattrr   r   r   s      r   Ú.test_legend_disabled_when_no_matplotlib_legendr!   %   s   € åŒl‰nŒnG€CˆØ‡G‚GˆQˆFQ˜F (€GÑ+Ô+Ð+åÔ" 3Ñ'Ô'€Jõ
 JÔ% |Ñ4Ô4ðàÔÔ'¨4Ò/Ð/Ð/Ð/ðð à/Ð/r   c                  ó6  — t          j        ¦   «         \  } }|                     ddgddgd¬¦  «         |                     ¦   «         }|                     d¦  «         t          j        | ¦  «        }t          |j        d¦  «        r|j        j	        dk    sJ ‚dS dS )	zITest that legend is not enabled when no matplotlib legend is not visible.r   r   r   r   Fr   TN)
r	   r
   r   r   Úset_visibler   r   r    r   r   )r   r   r   r   s       r   Ú7test_legend_disabled_when_matplotlib_legend_not_visibler$   4   s    € åŒl‰nŒnG€CˆØ‡G‚GˆQˆFQ˜F (€GÑ+Ô+Ð+ØYŠY‰[Œ[€FØ
×ÒuÑÔÐåÔ" 3Ñ'Ô'€Jõ JÔ% |Ñ4Ô4ðàÔÔ'¨4Ò/Ð/Ð/Ð/ðð à/Ð/r   c                  ó¨  — t          j        ¦   «         \  } }|                     g d¢g d¢dd¬¦  «         |                     g d¢g d¢dd¬¦  «         |                     g d¢g d	¢d
d¬¦  «         |                     ¦   «          t	          j        | ¦  «        }|j        j        dk    sJ ‚t          |j	        ¦  «        dk    sJ ‚|j	        d         j
        dk    sJ ‚|j	        d         j
        dk    sJ ‚|j	        d         j
        dk    sJ ‚|j	        d         j        dk    sJ ‚|j	        d         j        dk    sJ ‚|j	        d         j        dk    sJ ‚dS )zATest native legend works with multiple traces of different types.)r   r   r   )r   r   r   ú-ÚLiner   )r   r   r   ÚoÚMarkers)ç      à?r*   r*   zs-zLine+MarkersTé   r   r   r   ÚlinesÚmarkerszlines+markersN)r	   r
   r   r   r   r   r   r   r   r   r   Úmoder   s      r   Ú"test_multiple_traces_native_legendr/   D   sn  € åŒl‰nŒnG€CˆØ‡G‚GˆIˆIˆIyyy #¨V€GÑ4Ô4Ð4Ø‡G‚GˆIˆIˆIyyy #¨Y€GÑ7Ô7Ð7Ø‡G‚GˆIˆIˆI¨°N€GÑCÔCÐCØ‡I‚IK„K€KåÔ" 3Ñ'Ô'€JàÔÔ'¨4Ò/Ð/Ð/Ð/ÝˆzŒÑÔ 1Ò$Ð$Ð$Ð$ØŒ?˜1ÔÔ" fÒ,Ð,Ð,Ð,ØŒ?˜1ÔÔ" iÒ/Ð/Ð/Ð/ØŒ?˜1ÔÔ" nÒ4Ð4Ð4Ð4àŒ?˜1ÔÔ" gÒ-Ð-Ð-Ð-ØŒ?˜1ÔÔ" iÒ/Ð/Ð/Ð/ØŒ?˜1ÔÔ" oÒ5Ð5Ð5Ð5Ð5Ð5r   )Úmatplotlib.pyplotÚpyplotr	   Úplotly.toolsÚtoolsr   r   r   r!   r$   r/   © r   r   ú<module>r5      s~   ðØ Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð/ð /ð /ð"3ð 3ð 3ðð ð ðð ð ð 6ð 6ð 6ð 6ð 6r   