# Makie - How to pad data inside an axis?

**URL:** <https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [February 17, 2021, 9:03pm UTC](https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488 "2021-02-17T21:03:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kolaru](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kolaru/32/4574_2.png) [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Post date:** [February 17, 2021, 9:03pm UTC](https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488/1 "2021-02-17T21:03:08Z")

</div>

I currently have the following

![image](https://global.discourse-cdn.com/julialang/original/3X/1/a/1a5f428d6bfb3c5188f2fa5cdfd6db31c94e21de.png)

and I would like to put a bit more space above the curves (generated with `density` for the second and third). How can I achieve that?

If I could access the current `xlims` or `ylims` I could manually set it, but I didn’t manage to find where it is stored.

Also I don’t know the range of the curve itself for the plots generated with the `density` function.

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [February 17, 2021, 9:12pm UTC](https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488/2 "2021-02-17T21:12:42Z")

</div>

Limits are stored together in an Axis, but there should be `xlims!` and `ylims!` functions to adjust them individually. See [http://makie.juliaplots.org/stable/makielayout/laxis.html#Setting-Axis-Limits-and-Reversing-Axes](http://makie.juliaplots.org/stable/makielayout/laxis.html#Setting-Axis-Limits-and-Reversing-Axes)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [February 18, 2021, 12:19am UTC](https://discourse.julialang.org/t/makie-how-to-pad-data-inside-an-axis/55488/3 "2021-02-18T00:19:23Z")

</div>

You can also change the autolimit margins, which govern how much additional space the axis uses when determining `autolimits!`. I think that’s `xautolimitmargin = (0.2, 0.2)` and the y equivalent, you can also theme that beforehand for all axes
