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: 15 additions & 0 deletions +nla/+gfx/+brain/BrainPlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ function drawBrainPlots(obj)
obj.color_map_axis = plot_axis;

obj.addTitle();

settings_menu = uimenu(obj.plot_figure, 'Text', 'Settings');
change_scale_option = uimenu(settings_menu, 'Text', 'Change Scale');
change_scale_option.MenuSelectedFcn = {...
@obj.adjustScale, [obj.lower_limit, obj.upper_limit], obj.plot_figure,...
struct('lower_bound', obj.lower_limit, 'upper_bound', obj.upper_limit), false...
};
end

function setROIandConnectivity(obj)
Expand Down Expand Up @@ -499,6 +506,14 @@ function setDefaults(obj, ~, ~, upper_limit_box, lower_limit_box)
set(lower_limit_box, "String", obj.default_settings.lower_limit);
end

function adjustScale(obj, src, ~, bounds, plot_figure, parameters, ~)
nla.gfx.scaleSelector(src, bounds, plot_figure, parameters, false, @obj.applyScaleWrapper);
end

function applyScaleWrapper(obj, ~, ~, upper_limit_box, lower_limit_box, ~, ~, ~, ~)
obj.applyScale(false, false, upper_limit_box, lower_limit_box);
end

%%
% GETTERS for dependent properties
function value = get.is_noncorrelation_input(obj)
Expand Down
Loading