@@ -92,6 +92,19 @@ def _update_true_bbox(self, bbox, transform=None):
9292 else :
9393 self ._true_bbox = Bbox .union ([self ._true_bbox , bbox ])
9494
95+ def draw_path (self , gc , path , transform , rgbFace = None ):
96+ if self ._rasterizing > 0 :
97+ bbox = Bbox .null ()
98+ bbox .update_from_path (path , ignore = True )
99+ self ._update_true_bbox (bbox , transform )
100+ return self ._renderer .draw_path (gc , path , transform , rgbFace )
101+
102+ def draw_markers (self , gc , marker_path , marker_trans , path ,
103+ trans , rgbFace = None ):
104+ #TODO
105+ return self ._renderer .draw_markers (
106+ gc , marker_path , marker_trans , path , trans , rgbFace )
107+
95108 def draw_path_collection (self , gc , master_transform , paths , all_transforms ,
96109 offsets , offsetTrans , facecolors , edgecolors ,
97110 linewidths , linestyles , antialiaseds , urls ,
@@ -124,6 +137,14 @@ def draw_quad_mesh(self, gc, master_transform, meshWidth, meshHeight,
124137 gc , master_transform , meshWidth , meshHeight , coordinates ,
125138 offsets , offsetTrans , facecolors , antialiased , edgecolors )
126139
140+ def draw_gouraud_triangle (self , gc , points , colors , transform ):
141+ if self ._rasterizing > 0 :
142+ bbox = Bbox .null ()
143+ bbox .update_from_data_xy (points , ignore = True )
144+ self ._update_true_bbox (bbox , transform )
145+ return self ._renderer .draw_gouraud_triangle (
146+ gc , points , colors , transform )
147+
127148 def start_rasterizing (self ):
128149 """
129150 Enter "raster" mode. All subsequent drawing commands (until
@@ -183,10 +204,8 @@ def stop_rasterizing(self):
183204 # requested, but that's better than the drawing not fitting
184205 # into the space requested, see Issue #6827
185206 self ._renderer .draw_image (
186- gc ,
187- self ._true_bbox .x0 ,
188- self ._true_bbox .y0 ,
189- image , bbox = self ._true_bbox )
207+ gc , self ._true_bbox .x0 , self ._true_bbox .y0 , image ,
208+ true_size = (self ._true_bbox .width , self ._true_bbox .height ))
190209 self ._raster_renderer = None
191210 self ._rasterizing = False
192211
0 commit comments