@@ -92,6 +92,19 @@ def _update_true_bbox(self, bbox, transform=None):
92
92
else :
93
93
self ._true_bbox = Bbox .union ([self ._true_bbox , bbox ])
94
94
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
+
95
108
def draw_path_collection (self , gc , master_transform , paths , all_transforms ,
96
109
offsets , offsetTrans , facecolors , edgecolors ,
97
110
linewidths , linestyles , antialiaseds , urls ,
@@ -124,6 +137,14 @@ def draw_quad_mesh(self, gc, master_transform, meshWidth, meshHeight,
124
137
gc , master_transform , meshWidth , meshHeight , coordinates ,
125
138
offsets , offsetTrans , facecolors , antialiased , edgecolors )
126
139
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
+
127
148
def start_rasterizing (self ):
128
149
"""
129
150
Enter "raster" mode. All subsequent drawing commands (until
@@ -183,10 +204,8 @@ def stop_rasterizing(self):
183
204
# requested, but that's better than the drawing not fitting
184
205
# into the space requested, see Issue #6827
185
206
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 ))
190
209
self ._raster_renderer = None
191
210
self ._rasterizing = False
192
211
0 commit comments