Rotate axis labels and change axis location in Makie

Hi,

I have a plot that currently looks like:

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! :slight_smile:

Thanks,
Pavan

For 1. you need xlabelrotation see in the long list here: API

The code should be something like

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

this seems to only be available for Axis3

2 Likes

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.