<s> from . base import Renderer <EOL> class FakeRenderer ( Renderer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . output = "<STR_LIT>" <EOL> def open_figure ( self , fig , props ) : <EOL> self . output += "<STR_LIT>" <EOL> def close_figure ( self , fig ) : <EOL> self . output += "<STR_LIT>" <EOL> def open_axes ( self , ax , props ) : <EOL> self . output += "<STR_LIT>" <EOL> def close_axes ( self , ax ) : <EOL> self . output += "<STR_LIT>" <EOL> def open_legend ( self , legend , props ) : <EOL> self . output += "<STR_LIT>" <EOL> def close_legend ( self , legend ) : <EOL> self . output += "<STR_LIT>" <EOL> def draw_text ( self , text , position , coordinates , style , <EOL> text_type = None , mplobj = None ) : <EOL> self . output += "<STR_LIT>" . format ( text , text_type ) <EOL> def draw_path ( self , data , coordinates , pathcodes , style , <EOL> offset = None , offset_coordinates = "<STR_LIT:data>" , mplobj = None ) : <EOL> self . output += "<STR_LIT>" . format ( data . shape [ <NUM_LIT:0> ] ) <EOL> def draw_image ( self , imdata , extent , coordinates , style , mplobj = None ) : <EOL> self . output += "<STR_LIT>" . format ( len ( imdata ) ) <EOL> class FullFakeRenderer ( FakeRenderer ) : <EOL> """<STR_LIT>""" <EOL> def draw_line ( self , data , coordinates , style , label , mplobj = None ) : <EOL> self . output += "<STR_LIT>" . format ( data . shape [ <NUM_LIT:0> ] ) <EOL> def draw_markers ( self , data , coordinates , style , label , mplobj = None ) : <EOL> self . output += "<STR_LIT>" . format ( data . shape [ <NUM_LIT:0> ] ) <EOL> def draw_path_collection ( self , paths , path_coordinates , path_transforms , <EOL> offsets , offset_coordinates , offset_order , <EOL> styles , mplobj = None ) : <EOL> self . output += ( "<STR_LIT>" <EOL> "<STR_LIT>" . format ( offsets . shape [ <NUM_LIT:0> ] ) ) </s>
