# \[Makie, AlgebraOfGraphics\] Multiline title pushed content out of frame

**URL:** <https://discourse.julialang.org/t/makie-algebraofgraphics-multiline-title-pushed-content-out-of-frame/77865>\
**Category:** Visualization\
**Tags:** makie, algebraofgraphics\
**Created:** [March 14, 2022, 1:28pm UTC](https://discourse.julialang.org/t/makie-algebraofgraphics-multiline-title-pushed-content-out-of-frame/77865 "2022-03-14T13:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [March 14, 2022, 1:28pm UTC](https://discourse.julialang.org/t/makie-algebraofgraphics-multiline-title-pushed-content-out-of-frame/77865/1 "2022-03-14T13:28:26Z")

</div>

I want a plot with a multiline title. I am plotting via AlgebraOfGraphics.jl. The problem is that the title (set by `current_axis().title = `) pushes content out of frame when it becomes multiline. I also tried adding `Label` objects above the axis, but that had the same effect. Below are pictures of the problem.

One line title:

 ![plot_30](https://global.discourse-cdn.com/julialang/original/3X/d/9/d9b65d4a1ff9b41dab67c6df368af0f116ca3dca.png)

Two line title:

 ![plot_31](https://global.discourse-cdn.com/julialang/original/3X/8/8/88b6aaf5ce31fce32785727e682eaf55d243e691.png)

Three line title:

 ![plot_32](https://global.discourse-cdn.com/julialang/original/3X/2/d/2d8475a1a90b8f2a61456f817cf8145e1dc92fb3.png)

With three lines, the first one is completely gone, along with my xlabel. Not great.

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [March 21, 2022, 9:11am UTC](https://discourse.julialang.org/t/makie-algebraofgraphics-multiline-title-pushed-content-out-of-frame/77865/2 "2022-03-21T09:11:00Z")

</div>

`resize_to_layout!(current_figure())` did the trick.
