Skip to content

Commit 9b8095e

Browse files
committed
renaming and dropdown defaults
1 parent b52b2c2 commit 9b8095e

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

src/ERPExplorer.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ include("explore.jl")
2121
include("functions_preprocessing.jl")
2222
include("functions_formular.jl")
2323
include("functions_plotting.jl")
24-
include("functions_scatter_linestyle.jl")
24+
include("functions_style_scatter_lines.jl")
2525
include("widgets_short.jl")
2626
include("widgets_long.jl")
2727

28-
2928
end

src/functions_formular.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
formula_DOMs(variables)
2+
formular_widgets(variables)
33
Create widgets to control all model variables.\\
44
55
Arguments:\\

src/functions_plotting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function update_grid(data, formula_values, cat_terms, continuous_terms, mapping_
8383
continue
8484
end
8585
dict_grid = Dict(collect(keys(active_cat_vars)) .=> level_grid)
86-
define_scatter_line_style!(
86+
define_style_scatter_lines!(
8787
plots,
8888
subdata,
8989
dict_grid,

src/functions_scatter_linestyle.jl renamed to src/functions_style_scatter_lines.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
define_scatter_line_style!(plots, data, dict_grid, scatter_styles, line_styles, continuous_vars)
2+
define_style_scatter_lines!(plots, data, dict_grid, scatter_styles, line_styles, continuous_vars)
33
Define styling of lines and points (scatter).
44
55
Actions:\\
@@ -17,7 +17,7 @@ Arguments:\\
1717
1818
**Return Value:** `Makie.GridLayoutSpec`.
1919
"""
20-
function define_scatter_line_style!(
20+
function define_style_scatter_lines!(
2121
plots,
2222
data,
2323
dict_grid,

src/widgets_long.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function mapping_dropdowns(varnames, var_types)
2121
cats = [v for (ix, v) in enumerate(varnames) if var_types[ix] == :CategoricalTerm]
2222
push!(cats, :none)
2323

24-
c_dropdown = Dropdown(cats; index = 1)
25-
m_dropdown = Dropdown(cats; index = length(cats) - 1)
24+
c_dropdown = Dropdown(cats; index = length(cats)) #index is the default value
25+
m_dropdown = Dropdown(cats; index = length(cats))
2626
l_dropdown = Dropdown(cats; index = length(cats))
2727
col_dropdown = Dropdown(cats; index = length(cats))
2828
row_dropdown = Dropdown(cats; index = length(cats))

0 commit comments

Comments
 (0)