using WGLMakie
n = 500
x = 1:n
y = randn(n)
fig = Figure()
ax = Axis(
fig[1,1],
limits=(nothing, (-1.5, 1.5)),
xgridcolor=:red,
leftspinevisible=false,
rightspinevisible=false,
topspinevisible=false,
bottomspinevisible=false,
)
scatter!(x,y)
fig
I want to plot points above and below the y-gridlines. That could be implemented in two ways:
- Extend the plotting space: plot points beyond the
limits
into the marginal space. - Shorten the y-grid lines so they only go
(-1.0, 1.0)
instead of the full length of thelimits
, settingygridlimits = (-1., 1.)
.
Is either of these possible?