
    6DhE
                     <    S SK Jr   " S S\5      r " S S\5      rg)   )Rendererc                   h    \ rS rSrSrS rS rS rS rS r	S r
S	 r SS jr   SS jrSS jrSrg
)FakeRenderer   a  
Fake Renderer

This is a fake renderer which simply outputs a text tree representing the
elements found in the plot(s).  This is used in the unit tests for the
package.

Below are the methods your renderer must implement. You are free to do
anything you wish within the renderer (i.e. build an XML or JSON
representation, call an external API, etc.)  Here the renderer just
builds a simple string representation for testing purposes.
c                     SU l         g )N output)selfs    i/var/www/html/env/lib/python3.13/site-packages/plotly/matplotlylib/mplexporter/renderers/fake_renderer.py__init__FakeRenderer.__init__   s	        c                 .    U =R                   S-  sl         g )Nzopening figure
r	   )r   figpropss      r   open_figureFakeRenderer.open_figure       ))r   c                 .    U =R                   S-  sl         g )Nzclosing figure
r	   )r   r   s     r   close_figureFakeRenderer.close_figure   r   r   c                 .    U =R                   S-  sl         g )Nz  opening axes
r	   )r   axr   s      r   	open_axesFakeRenderer.open_axes   r   r   c                 .    U =R                   S-  sl         g )Nz  closing axes
r	   )r   r   s     r   
close_axesFakeRenderer.close_axes   r   r   c                 .    U =R                   S-  sl         g )Nz    opening legend
r	   )r   legendr   s      r   open_legendFakeRenderer.open_legend!       --r   c                 .    U =R                   S-  sl         g )Nz    closing legend
r	   )r   r!   s     r   close_legendFakeRenderer.close_legend$   r$   r   Nc                 L    U =R                   SR                  X5      -  sl         g )Nz    draw text '{0}' {1}
)r
   format)r   textpositioncoordinatesstyle	text_typemplobjs          r   	draw_textFakeRenderer.draw_text'   s     	299$JJr   c                 f    U =R                   SR                  UR                  S   5      -  sl         g )Nz     draw path with {0} vertices
    r
   r)   shape)r   datar,   	pathcodesr-   offsetoffset_coordinatesr/   s           r   	draw_pathFakeRenderer.draw_path,   s&     	:AA$**Q-PPr   c                 ^    U =R                   SR                  [        U5      5      -  sl         g )Nz    draw image of size {0}
)r
   r)   len)r   imdataextentr,   r-   r/   s         r   
draw_imageFakeRenderer.draw_image8   s     5<<S[IIr   r	   )NN)Nr6   NN)__name__
__module____qualname____firstlineno____doc__r   r   r   r   r   r"   r&   r0   r:   r@   __static_attributes__ r   r   r   r      sN    ****.. JNK !
QJr   r   c                   8    \ rS rSrSrSS jrSS jr SS jrSrg)	FullFakeRenderer<   z
Renderer with the full complement of methods.

When the following are left undefined, they will be implemented via
other methods in the class.  They can be defined explicitly for
more efficient or specialized use within the renderer implementation.
Nc                 f    U =R                   SR                  UR                  S   5      -  sl         g )Nz    draw line with {0} points
r3   r4   r   r6   r,   r-   labelr/   s         r   	draw_lineFullFakeRenderer.draw_lineE   s$    8??

1NNr   c                 f    U =R                   SR                  UR                  S   5      -  sl         g )Nz    draw {0} markers
r3   r4   rN   s         r   draw_markersFullFakeRenderer.draw_markersH   s$    /66tzz!}EEr   c	                 f    U =R                   SR                  UR                  S   5      -  sl         g )Nz*    draw path collection with {0} offsets
r3   r4   )	r   pathspath_coordinatespath_transformsoffsetsr9   offset_orderstylesr/   s	            r   draw_path_collection%FullFakeRenderer.draw_path_collectionK   s,     	GNNMM!
 	
r   rI   rB   )	rC   rD   rE   rF   rG   rP   rS   r\   rH   rI   r   r   rK   rK   <   s    OF 
r   rK   N)baser   r   rK   rI   r   r   <module>r_      s#    5J8 5Jp
| 
r   