How to add a secondary y-axis (right-side axis) for a waterfall plot in Makie?

arafune
Mon, 30 Mar 2026 09:35:47 +0000
Visualization

Hi everyone,

I am trying to create a waterfall plot (stacked line plot) in Makie.jl as shown in the attached image (Fig1.jpg).

I already know how to apply offsets to the lines to create the waterfall effect. However, I am struggling with how to add a secondary vertical axis on the right side to represent the “Emission Angle”.

In my case:

Left y-axis: Intensity (with offsets).

Right y-axis: Emission Angle (the parameter that distinguishes each line).

Could anyone point me to the idiomatic way to achieve this in Makie?
Any code snippets or examples would be very helpful. Thank you!

11 posts - 3 participants