(orig_handle, width, height)
| 370 | |
| 371 | @staticmethod |
| 372 | def _create_line(orig_handle, width, height): |
| 373 | # Unfilled StepPatch should show as a line |
| 374 | legline = Line2D([0, width], [height/2, height/2], |
| 375 | color=orig_handle.get_edgecolor(), |
| 376 | linestyle=orig_handle.get_linestyle(), |
| 377 | linewidth=orig_handle.get_linewidth(), |
| 378 | ) |
| 379 | |
| 380 | # Overwrite manually because patch and line properties don't mix |
| 381 | legline.set_drawstyle('default') |
| 382 | legline.set_marker("") |
| 383 | return legline |
| 384 | |
| 385 | def create_artists(self, legend, orig_handle, |
| 386 | xdescent, ydescent, width, height, fontsize, trans): |
no test coverage detected