@@ -58,30 +58,49 @@ def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None)
58
58
rgbFace = tuple (rgbFace )
59
59
gc .draw_markers (marker_path , marker_trans , path , trans , rgbFace )
60
60
61
- def draw_path_collection (self , * args ):
62
- # TODO: We should change this in the C code eventually, but this
63
- # re-ordering of arguments should work for now
64
- gc = args [0 ]
65
- args = tuple ([gc , args [1 ], gc .get_clip_rectangle ()] + \
66
- list (gc .get_clip_path ()) + list (args [2 :]))
67
- gc .draw_path_collection (* args )
68
-
69
- def draw_quad_mesh (self , * args ):
70
- # TODO: We should change this in the C code eventually, but this
71
- # re-ordering of arguments should work for now
72
- gc = args [0 ]
73
- args = [gc , args [1 ], gc .get_clip_rectangle ()] + \
74
- list (gc .get_clip_path ()) + list (args [2 :])
75
- gc .draw_quad_mesh (* args )
61
+ def draw_path_collection (self , gc , master_transform , paths , all_transforms ,
62
+ offsets , offsetTrans , facecolors , edgecolors ,
63
+ linewidths , linestyles , antialiaseds , urls ):
64
+ cliprect = gc .get_clip_rectangle ()
65
+ clippath , clippath_transform = gc .get_clip_path ()
66
+ gc .draw_path_collection (master_transform ,
67
+ cliprect ,
68
+ clippath ,
69
+ clippath_transform ,
70
+ paths ,
71
+ all_transforms ,
72
+ offsets ,
73
+ offsetTrans ,
74
+ facecolors ,
75
+ edgecolors ,
76
+ linewidths ,
77
+ linestyles ,
78
+ antialiaseds )
79
+
80
+ def draw_quad_mesh (self , gc , master_transform , meshWidth , meshHeight ,
81
+ coordinates , offsets , offsetTrans , facecolors ,
82
+ antialiased , showedges ):
83
+ cliprect = gc .get_clip_rectangle ()
84
+ clippath , clippath_transform = gc .get_clip_path ()
85
+ gc .draw_quad_mesh (master_transform ,
86
+ cliprect ,
87
+ clippath ,
88
+ clippath_transform ,
89
+ meshWidth ,
90
+ meshHeight ,
91
+ coordinates ,
92
+ offsets ,
93
+ offsetTrans ,
94
+ facecolors ,
95
+ antialiased ,
96
+ showedges )
76
97
77
98
def new_gc (self ):
78
99
self .gc .save ()
79
100
self .gc .set_hatch (None )
80
101
return self .gc
81
102
82
103
def draw_image (self , gc , x , y , im ):
83
- # TODO: We should change this in the C code eventually, but this
84
- # re-ordering of arguments should work for now
85
104
im .flipud_out ()
86
105
nrows , ncols , data = im .as_rgba_str ()
87
106
gc .draw_image (x , y , nrows , ncols , data , gc .get_clip_rectangle (),
0 commit comments