×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to plot within Guide determined area

How to plot within Guide determined area

How to plot within Guide determined area

(OP)
I define within guide an area to plot a graphical function. The file.m program launches correctly, but the graphic is plotted in a separate window, instead of the destined area I define under guide.

As I use active buttons, it would be nicer to have the plot alongside the buttons.

Any help would be appreciated

Geoffrey

function varargout = pushbutton1_Callback(h, eventdata, handles, varargin)
% Stub for Callback of the uicontrol handles.pushbutton1.
disp('pushbutton1 Callback not implemented yet.')
axes(handles.axes1)
[X,Y,Z] = peaks(30);
handles.data = [X , Y , Z] ;
guidata(h, handles);

mesh(handles.data)

RE: How to plot within Guide determined area

Before you plot, you need to make the GUI window the active figure using

figure(GUI_figure_handle);

M

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources