> I created a gui that loads a file and its data and then does some > spectal estimation calulation and plots the result. However, the plot > only shows up and updates after I hit the plot button. I am trying to > have it plot immediately after the user selects the input data and > automatically update when the value of the sliders change. I know I > can put all the plot functions in the slider call back, but I am > trying to keep my code as short as possible and want to create one > function that gets all the slider values and input data from > getappdata and then updates the plot without having to push any other > button.
switch event case 'select_input_data' store_input_data; set_plot_dirty(true); case 'slider_change' store_slider_value; set_plot_dirty(true); end