×
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 a plotyy in an gui

How to plot a plotyy in an gui

How to plot a plotyy in an gui

(OP)
How can I plot a plotyy in a gui? The code...

axes(handles.TSchart);
[TSrp]=plotyy(1:rrows,r,1:rrows,p);
set(get(TSrp(1),'Ylabel'),'String','Coefficient r')
set(get(TSrp(2),'Ylabel'),'String','p-Value')
title(TSheader(1,i));
xlabel('lag (return)');
grid on

...gives an error:

??? There is no 'NextPlot' property in the 'uipanel' class.
Error in ==> plotyy at 58
set(fig,'NextPlot','add')

What am I doing wrong?
Thanks for your help, Stefan

RE: How to plot a plotyy in an gui

Hi,
Plotyy is a 2 axes figure (one on top of the other). The upper axes is transparent (color:'none') with no Xticks (Xtick:[]) and yaxis on the right hand.
You can create it using GUIDE with other objects.
 To use it:
H=guihandles(gcf);
plot(1:rrows,r,'parent',H.axes1);
plot(1:rrows,p,'color','r','parent',H.axes2)

I hope this helps.

Joe Sababa

BSTeX - Equation viewer for Matlab
http://www.geocities.com/bstex2001/

Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001

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