Rotate axis labels and change axis location in Makie


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:


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


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.