Process a matplotlib patch object and call renderer.draw_path
(self, ax, patch, force_trans=None)
| 232 | ) |
| 233 | |
| 234 | def draw_patch(self, ax, patch, force_trans=None): |
| 235 | """Process a matplotlib patch object and call renderer.draw_path""" |
| 236 | vertices, pathcodes = utils.SVG_path(patch.get_path()) |
| 237 | transform = patch.get_transform() |
| 238 | coordinates, vertices = self.process_transform( |
| 239 | transform, ax, vertices, force_trans=force_trans |
| 240 | ) |
| 241 | linestyle = utils.get_path_style(patch, fill=patch.get_fill()) |
| 242 | self.renderer.draw_path( |
| 243 | data=vertices, |
| 244 | coordinates=coordinates, |
| 245 | pathcodes=pathcodes, |
| 246 | style=linestyle, |
| 247 | mplobj=patch, |
| 248 | ) |
| 249 | |
| 250 | def draw_collection( |
| 251 | self, ax, collection, force_pathtrans=None, force_offsettrans=None |
no test coverage detected