How can I use Makie to create a complex composite figure?
A plot like this:
Welcome to Julia discourse!
Have you tried anything already? Do you have a specific question?
The Makie docs sometimes lack some information, but a lot of examples and tutorials are there:
- scatterlines | Makie
- A line plot with markers
- Axis | Makie
- Drawing y-axes on both sides of the plot (so-called “twin axis”)
- Legend | Makie
- Creating legends manually, which offers a better control over the labels and markers
- Creating complex layouts | Makie
- Creating complex figures with several subplots, colorbars, etc.
This should at least help you get started.
I don’t know how to partially overlay multiple layouts.
I am not sure what you mean by overlaying multiple layouts. If you mean the two y-axes (“Flow coefficient” on the left and “Non-dimensional rig tumble” on the right) then that’s the twin axis I linked in the previous post.
I guess they mean that the twin axis occupies only part of the vertical space. That can be solved by calculating beforehand what fraction of the vertical space the twin axis occupies, then setting height = Relative(fraction), valign = :bottom
on it
The left y-axis has two step
intervals. Between 0 and 0.6, it is two squares per 0.1 units but above that it is one square per 0.2 units. It also has two axis labels, one for each segment.
So the left axis is actually acting a bit like two axes. Is this part of the OP’s question?