# Rotate axis labels and change axis location in Makie

**URL:** https://discourse.julialang.org/t/rotate-axis-labels-and-change-axis-location-in-makie/85787
**Category:** General Usage
**Tags:** makie
**Created:** [August 15, 2022, 4:59pm UTC](https://discourse.julialang.org/t/rotate-axis-labels-and-change-axis-location-in-makie/85787 "2022-08-15T16:59:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![PavanChaggar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pavanchaggar/32/21597_2.png) [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)
#### Post date: [August 15, 2022, 4:59pm UTC](https://discourse.julialang.org/t/rotate-axis-labels-and-change-axis-location-in-makie/85787/1 "2022-08-15T16:59:14Z")

</div>

Hi,

I have a plot that currently looks like:

 ![plot_24](https://global.discourse-cdn.com/julialang/original/3X/6/3/630a8ec570d6286601188b10e761b5741a1f8a06.png)

I want to do two things:

1. rotate the ylabel 90 degrees clockwise
2. move the x-axis up so that it intersects at y=0

I couldn’t find these in the docs or discourse. Any help is appreciated! 🙂

Thanks,  
Pavan

---

<div class="post-metadata">

### Author: ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)
#### Post date: [August 15, 2022, 5:05pm UTC](https://discourse.julialang.org/t/rotate-axis-labels-and-change-axis-location-in-makie/85787/3 "2022-08-15T17:05:35Z")

</div>

For 1. you need `xlabelrotation` see in the long list here: [API](https://makie.juliaplots.org/dev/api/index.html)

The code should be something like

```julia
Axis(fig[1,1], ylabel = "...", ylabelrotation = pi/2)

```

---

<div class="post-metadata">

### Author: ![PavanChaggar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pavanchaggar/32/21597_2.png) [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)
#### Post date: [August 15, 2022, 5:08pm UTC](https://discourse.julialang.org/t/rotate-axis-labels-and-change-axis-location-in-makie/85787/4 "2022-08-15T17:08:20Z")

</div>

this seems to only be available for `Axis3`

---

<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: [August 15, 2022, 5:13pm UTC](https://discourse.julialang.org/t/rotate-axis-labels-and-change-axis-location-in-makie/85787/5 "2022-08-15T17:13:44Z")

</div>

Ylabel rotation is currently not exposed as a parameter. It should be I think.

You cannot move the axis spine into the axis currently, arguably that could be added but there are some edge cases to consider.
