Skip to content

Commit

Permalink
Update sgpanel.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
sl-solution committed May 22, 2023
1 parent 245c9d0 commit f6e7395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sgpanel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ SGPANEL_DEFAULT = Dict(:layout=>:panel, # it can be :panel, :lattice - panel sho


function _sgpanel(ds, panelby::IMD.MultiColumnIndex, plts::Vector{<:SGMarks}; mapformats=true, nominal::Union{Nothing,IMD.ColumnIndex,IMD.MultiColumnIndex}=nothing, xaxis=Axis(), x2axis=Axis(), yaxis=Axis(), y2axis=Axis(), legend::Union{Bool,Legend,Vector{Legend}}=true, threads=nrow(ds) > 10^6, opts...)
# check the consistency of the passed grouped data set
IMD._check_consistency(ds)
IMD._get_fmt(ds) != mapformats && throw(ArgumentError("the input data set uses mapformats = $(IMD._get_fmt(ds)), but the sgplot is called with mapformats = $(mapformats)"))

# read opts
Expand Down

0 comments on commit f6e7395

Please sign in to comment.