| 352 | |
| 353 | |
| 354 | class HandlerEllipse(HandlerPatch): |
| 355 | def create_artists(self, legend, orig_handle, |
| 356 | xdescent, ydescent, width, height, fontsize, trans): |
| 357 | center = 0.5 * width - 0.5 * xdescent, 0.5 * height - 0.5 * ydescent |
| 358 | p = mpatches.Ellipse(xy=center, width=width + xdescent, |
| 359 | height=height + ydescent) |
| 360 | self.update_prop(p, orig_handle, legend) |
| 361 | p.set_transform(trans) |
| 362 | return [p] |
| 363 | |
| 364 | |
| 365 | c = mpatches.Circle((0.5, 0.5), 0.25, facecolor="green", |
no outgoing calls
no test coverage detected
searching dependent graphs…