Skip to content

Commit

Permalink
fix GridLayout problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Nov 26, 2023
1 parent 69cb6c4 commit 35b9460
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plot_parallelcoordinates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Check warning on line 134 in src/plot_parallelcoordinates.jl

View check run for this annotation

Codecov / codecov/patch

src/plot_parallelcoordinates.jl#L131-L134

Added lines #L131 - L134 were not covered by tests
itp = cubic_spline_interpolation(x_pos, plotdata[:,k])
#itp = cubic_spline_interpolation(x_pos, plotdata[:,k])

itp = interpolate(plotdata[:,k], BSpline(Quadratic(Reflect(OnGrid()))))

Check warning on line 137 in src/plot_parallelcoordinates.jl

View check run for this annotation

Codecov / codecov/patch

src/plot_parallelcoordinates.jl#L137

Added line #L137 was not covered by tests


plotdata_int[:,k] = itp.(x_plotdata)

Check warning on line 140 in src/plot_parallelcoordinates.jl

View check run for this annotation

Codecov / codecov/patch

src/plot_parallelcoordinates.jl#L140

Added line #L140 was not covered by tests
end
end
Expand Down

0 comments on commit 35b9460

Please sign in to comment.