Inserting margins above plot title

Hi all! I’m trying to insert margin above the plot title but am unsure how. Any help would be great!

For context, I have been using Plots.jl and Measures.jl to insert margins but top_margin only inserted space between the plot and the title.

ex.

using Plots, Measures
x = [1,2,3,4,5]
y = [1,2,3,4,5]
plot(x,y,title= "a random plot",  top_margin=5mm)

A simple way is to insert carriage returns \n in the title string:

plot(x,y,title= "\n\nA random plot", topmargin=5mm)

But you can achieve finer control with plots’ layouts, if needed.

Interesting solution, much thanks!