From 35b94607cf523ed041722e6d86e6ecb49122d884 Mon Sep 17 00:00:00 2001 From: "behinger (s-ccs 001)" Date: Sun, 26 Nov 2023 09:56:25 +0000 Subject: [PATCH] fix GridLayout problem? --- src/plot_parallelcoordinates.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plot_parallelcoordinates.jl b/src/plot_parallelcoordinates.jl index 08169f70..4e94658d 100644 --- a/src/plot_parallelcoordinates.jl +++ b/src/plot_parallelcoordinates.jl @@ -99,7 +99,7 @@ function parallelplot(f::Union{<:Figure,<:GridPosition,<:GridLayout}, @assert size(data,2) == length(color) end x_pos = 1:size(data,1) - ax = f[1,1] = Axis(f) + ax = Axis(f[1,1]) scene = ax.parent.scene ax_labels = isnothing(ax_labels) ? string.(1:size(data,1)) : ax_labels @@ -132,7 +132,11 @@ function parallelplot(f::Union{<:Figure,<:GridPosition,<:GridLayout}, plotdata_int = Array{Float64}(undef,length(x_plotdata),size(plotdata,2)) @debug size(plotdata) for k = 1:size(plotdata,2) - itp = cubic_spline_interpolation(x_pos, plotdata[:,k]) + #itp = cubic_spline_interpolation(x_pos, plotdata[:,k]) + + itp = interpolate(plotdata[:,k], BSpline(Quadratic(Reflect(OnGrid())))) + + plotdata_int[:,k] = itp.(x_plotdata) end end