ASE 201 - Creating a GUI with multiple plots revised

ASE 201 - Creating a GUI with multiple plots revised -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Creating a GUI with multiple plots 1. Guide creates a gui and the gui itself is figure 1. You add axes for plotting inside of figure 1. 2. In order to plot into different sets of axes, you need to know the handle of the axes you want to use. The function plot(x,y) will plot into the current set of axes. This is the set of axes that were created last in your gui. If you only have one set of axes, there is no problem. 3. If you want to plot into multiple sets of axes, you need the handle of the set of axes you want to use. There are 2 ooptions: A. You can use the findobj() function to do this. See section 9.6 findobj(‘type’,’axes’) will return the handles of all of the objects whose ‘type’ field has ‘axes’ in it. The handles are assigned at run time and differ every time your gui is called. Example Code: axes1 and axes2 were created by guide. This is a pushbutton callback code that plots a sin function into the first set of axes and a straight line into the second set of axes. . Ht1 will be an array with the handles of all of the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

ASE 201 - Creating a GUI with multiple plots revised -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online