GUI axis, graph label pop up menu settings
4 views (last 30 days)
Hello, I am trying to design a GUI in which the user can select predefined data sets and plot the graphs. I succeded in this. Now, I want to add some other options like axis limit settings, xlabel, ylabel etc, wherein the user can give the desired scaling for the graph, and titles for the axes.
How can I implement this function ?
Davide Ferraro on 23 Jul 2012
the approach is the same you have probably used before. You may use the object callback (you may have edit box to allow the user to insert his text) to control the axes callbacks by using the SET command. In example:
where ah is the handle to your axes (handles.<tagname> if you are using GUIDE).
An example of using callbacks: