Skip to content

Commit

Permalink
Use _calc_gridsize to calculate n_rows and n_cols
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosejoycrocker committed Jan 17, 2024
1 parent 713d8a5 commit c9fca07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/AvizExt/viz/location_selection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function ADRIA.viz.decision_matrices!(
opts[:colorbar_limits] = get(opts, :colorbar_limits, (0.0, 1.0))

n_criteria::Int64 = length(criteria)
n_rows = n_cols = ceil(Int64, sqrt(n_criteria + 1))
n_rows, n_cols = _calc_gridsize(n_criteria + 1)
criteria_names = String.(criteria)
step::Int64 = 1
s_row = 1
Expand Down

0 comments on commit c9fca07

Please sign in to comment.