Commit 676964a
committed
Stop double-scaling vertical text margins by aspect ratio
margin.to("fig") returns top/bottom values as fractions of figure
height already; the layout code was multiplying them by F = W/H a
second time, making vertical text margins grow with the aspect ratio.
Remove the extra * F on m.t / m.b in the top/bottom side-space
calculations in both plot and composition layouts. Regenerate
baseline images affected by the corrected spacing.1 parent 4336c3b commit 676964a
344 files changed
Lines changed: 18 additions & 18 deletions
File tree
- plotnine/_mpl/layout_manager
- tests/baseline_images
- test_aes
- test_annotate
- test_annotation_logticks
- test_annotation_stripes
- test_coords
- test_facet_labelling
- test_facets
- test_geom_abline
- test_geom_bar_col_histogram
- test_geom_bin_2d
- test_geom_blank
- test_geom_boxplot
- test_geom_count
- test_geom_crossbar
- test_geom_density_2d
- test_geom_density
- test_geom_dotplot
- test_geom_errorbar_errorbarh
- test_geom_freqpoly
- test_geom_hline
- test_geom_linerange_pointrange
- test_geom_path_line_step
- test_geom_pointdensity
- test_geom_point
- test_geom_polygon
- test_geom_qq_qq_line
- test_geom_quantile
- test_geom_raster
- test_geom_rect_tile
- test_geom_ribbon_area
- test_geom_rug
- test_geom_segment
- test_geom_sina
- test_geom_smooth
- test_geom_spoke
- test_geom_text_label
- test_geom_violin
- test_geom_vline
- test_ggplot_internals
- test_guide_internals
- test_layers
- test_layout
- test_plot_composition
- test_position
- test_qplot
- test_scale_internals
- test_scale_labelling
- test_scale_linetype
- test_scale_symlog
- test_stat_ecdf
- test_stat_ellipse
- test_stat_function
- test_stat_hull
- test_stat_summary_bin
- test_stat_summary
- test_theme
- test_watermark
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
| 610 | + | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| |||
0 commit comments