How to change displayed plot in a GUI with pop-up menu.
5 views (last 30 days)
I am developing a GUI using guide for a function I have written which results in (a minimum) of 5 plot figures. Is there a way that i can use a popup menu (in which i already have the 5 plots as selectable items) to choose which plot the user sees? Presently the target axes (axes1) is populated with the last plot the function produces.
Joseph Cheng on 10 Jun 2016
Edited: Joseph Cheng on 10 Jun 2016
Yes.... look at the guide quick start templates. type in guide into the workspace and it'll open the quick start window. Select the GUI with Axes and Menu template and there is a example of plots, axis and button implementation. you can adjust the code and instead use the popup callback to do your plotting when that value changes. the implementation is similar to how the button update will do except you're checking changed value within the popup callback