Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Fast Track/functions/utils/plotAggregate.praat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ procedure plotAggregate autorun

@getSettings
color = 1
number_of_bins = 0
number_of_bins_chosen = 0
while clicked == 2

if autorun == 0
Expand All @@ -21,13 +21,13 @@ procedure plotAggregate autorun
option: "Contours"
option: "Points"
option: "Numbers"
optionMenu: "Number of bins:", number_of_bins
optionMenu: "Number of bins:", number_of_bins_chosen
option: "1"
option: "3"
option: "5"
option: "7"
option: "9"
option: "10"
option: "11"
optionMenu: "Color", 1
option: "From Table"
option: "Red"
Expand Down Expand Up @@ -65,9 +65,12 @@ procedure plotAggregate autorun
endif


if number_of_bins == 0
number_of_bins = number(number_of_bins$)
## number_of_bins_chosen is the number of the respective option in the menu
if number_of_bins_chosen == 0
number_of_bins_chosen = number_of_bins
endif
## set number_of_bins to the actual number stored in the option
number_of_bins = number(number_of_bins$)

if autorun == 1
clicked = 1
Expand Down Expand Up @@ -165,4 +168,4 @@ procedure plotAggregate autorun
nocheck removeObject: .plot_symbols
nocheck removeObject: .clr_str

endproc
endproc