1
0
mirror of https://gitlab.com/MisterBiggs/splomplots.jl.git synced 2025-06-15 22:16:40 +00:00

added axis labels

This commit is contained in:
Anson 2022-03-09 18:31:54 -07:00
parent c355d5c497
commit 4853ad51e4

View File

@ -18,16 +18,27 @@ function splom(df::DataFrame)
cols = collect(keys(columns))
col_pairs = [(x, y) for x in cols, y in cols]
col_len = length(cols)
scatter_plots = repeat(
[scatter([1], [1])], length(col_pairs)
)
for (i, (x, y)) in enumerate(col_pairs)
scatter_plots[i] = plot()
if x == y
scatter_plots[i] = plot()
plot!(;
xaxis=nothing, yaxis=nothing, showaxis=false
)
else
scatter_plots[i] = scatter(df[!, x], df[!, y])
scatter!(df[!, x], df[!, y])
end
if i % col_len == 1
ylabel!(y)
end
if length(col_pairs) - i < col_len
xlabel!(x)
end
end