Commit c4f621f
committed
Draw insets into the host figure
Adds ggplot._draw_insets to render each attached inset into the host's
figure as the final step of draw(). Refactors _create_figure on both
ggplot and Compose into independent guards for the figure and the
gridspec so a pre-assigned figure (an inset reusing its host's) still
flows through to gridspec creation. Adds a _zorder class default on
ggplot and Compose that the inset path raises above the host.1 parent 3cc576a commit c4f621f
2 files changed
Lines changed: 56 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
461 | 470 | | |
462 | 471 | | |
463 | 472 | | |
464 | | - | |
465 | | - | |
| 473 | + | |
| 474 | + | |
466 | 475 | | |
467 | | - | |
| 476 | + | |
468 | 477 | | |
469 | | - | |
470 | | - | |
| 478 | + | |
| 479 | + | |
471 | 480 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
477 | 488 | | |
478 | 489 | | |
479 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| |||
373 | 381 | | |
374 | 382 | | |
375 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
376 | 388 | | |
377 | 389 | | |
378 | 390 | | |
| |||
387 | 399 | | |
388 | 400 | | |
389 | 401 | | |
390 | | - | |
391 | | - | |
| 402 | + | |
| 403 | + | |
392 | 404 | | |
393 | | - | |
| 405 | + | |
394 | 406 | | |
395 | | - | |
396 | | - | |
| 407 | + | |
| 408 | + | |
397 | 409 | | |
398 | | - | |
399 | | - | |
400 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
401 | 414 | | |
402 | 415 | | |
403 | 416 | | |
| |||
593 | 606 | | |
594 | 607 | | |
595 | 608 | | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
596 | 623 | | |
597 | 624 | | |
598 | 625 | | |
| |||
0 commit comments