Skip to content

Commit

Permalink
Fix #1101: horizontal margins on plot title/subtitle/caption.
Browse files Browse the repository at this point in the history
  • Loading branch information
OLarionova-HORIS committed May 14, 2024
1 parent ab48143 commit 66bc291
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion future_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
### Fixed
- Livemap: improve "tiles" documentation [[#1093](https://github.com/JetBrains/lets-plot/issues/1093)].
- Undesired vertical scroller when displaying `gggrid` in Jupyter notebook.
- GeoJson structure breaks if the ring start label occurs several times [[#1086](https://github.com/JetBrains/lets-plot/issues/1086)].
- GeoJson structure breaks if the ring start label occurs several times [[#1086](https://github.com/JetBrains/lets-plot/issues/1086)].
- `theme`: left margin doesn't work for the `plot_title` parameter [[#1101](https://github.com/JetBrains/lets-plot/issues/1101)].
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ class PlotSvgComponent constructor(
fun textRectangle(elementRect: DoubleRectangle, margins: Thickness) = createTextRectangle(
elementRect,
topMargin = margins.top,
bottomMargin = margins.bottom
rightMargin = margins.right,
bottomMargin = margins.bottom,
leftMargin = margins.left
)

val plotTitleElementRect = title?.let {
Expand Down

0 comments on commit 66bc291

Please sign in to comment.