# Add spacing under title in PlotlyJS

**URL:** <https://discourse.julialang.org/t/add-spacing-under-title-in-plotlyjs/56670>\
**Category:** Tooling\
**Tags:** plotting\
**Created:** [March 7, 2021, 12:43pm UTC](https://discourse.julialang.org/t/add-spacing-under-title-in-plotlyjs/56670 "2021-03-07T12:43:39Z")\
**Posts on this page:** 4\
**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 7, 2021, 12:43pm UTC](https://discourse.julialang.org/t/add-spacing-under-title-in-plotlyjs/56670/1 "2021-03-07T12:43:39Z")

</div>

I have the following plot:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/5/65aa19aad2fc4b35ecba62e7be107e51ec4893e8.png)

I don’t want the lines to extend all the way to the title - it looks pretty bad. The lines are created from `vline()´, and I have not figured out how I can ajust their height - that would also fix the issue.

Anyone have any good idea on how to deal with this?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [March 7, 2021, 5:11pm UTC](https://discourse.julialang.org/t/add-spacing-under-title-in-plotlyjs/56670/2 "2021-03-07T17:11:27Z")

</div>

Does this work?

```julia
plot(data, title = "title", top_margin = 40px)

```

---

<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 7, 2021, 5:59pm UTC](https://discourse.julialang.org/t/add-spacing-under-title-in-plotlyjs/56670/3 "2021-03-07T17:59:43Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/5/4/544de57393a6e80a51bf66505001d8a3f066f6ce.png)

Plots does not seem content with my units.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [March 7, 2021, 6:29pm UTC](https://discourse.julialang.org/t/add-spacing-under-title-in-plotlyjs/56670/4 "2021-03-07T18:29:00Z")

</div>

I think you need `Plots.mm`
