Hi,
I am trying to create a dot plot with CairoMakie
using the scatter
function. I want the dots to appear above the x-axis spine and decorations. Currently they are being partially hidden as the spine and decorations are being drawn over the markers from the scatter plot. Can this be done? If yes, can someone please suggest a way of doing this. I tried finding something like z-index, z-order from CSS, but could not find it in the docs. Below is my code and the pdf file showing the plot.
Thank you.
function draw_dot_plot(df)
size_in = (6,3)
size_pt = 72 .* size_in
fig = Cm.Figure(resolution = size_pt, fontsize = 12)
ax = Cm.Axis(fig[1,1],
bottomspinevisible=true,
topspinevisible=false,
rightspinevisible=false,
leftspinevisible=false,
xticks=0:0.1:1,
xgridvisible=false)
Cm.limits!(-0.02, 1.05, 0.05, 1)
Cm.hideydecorations!(ax)
xvec, yvec = create_dotplot_data(df)
Cm.scatter!(ax, xvec, yvec,
marker = :circle)
Cm.save("./temp/line.pdf", fig, pt_per_unit = 1)
end
Plot