Skip to content

Commit

Permalink
allow multicolumn input for transform functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rdboyes committed Apr 2, 2024
1 parent 098fa89 commit 6ce7821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/draw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Makie.SpecApi.Axis(plot::GGPlot)
# if there is a specified column transformation, use it
# otherwise use cat_inseq for string-like columns and as_is for everything else
if haskey(geom.column_transformations, aes)
plottable_data = geom.column_transformations[aes](aes, [aes_dict[a]], plot_data)
plottable_data = geom.column_transformations[aes][2](aes, geom.column_transformations[aes][1], plot_data)
elseif eltype(plot_data[!, aes_dict[a]]) <: Union{AbstractString, AbstractChar}
plottable_data = cat_inseq(aes, [aes_dict[a]], plot_data)
else
Expand Down Expand Up @@ -111,7 +111,7 @@ function Makie.SpecApi.Axis(plot::GGPlot)
# if there is a specified column transformation, use it
# otherwise use cat_inseq for string-like columns and as_is for everything else
if haskey(geom.column_transformations, aes)
plottable_data = geom.column_transformations[aes](aes, [aes_dict[a]], plot_data)
plottable_data = geom.column_transformations[aes][2](aes, geom.column_transformations[aes][1], plot_data)
elseif eltype(plot_data[!, aes_dict[a]]) <: Union{AbstractString, AbstractChar}
plottable_data = cat_inseq(aes, [aes_dict[a]], plot_data)
else
Expand Down

0 comments on commit 6ce7821

Please sign in to comment.