-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails with yyplot #12
Comments
I believe this has something to do with line 194: uistack(H.mainLine,'top') % Bring the main line to the top I commented out this line, and I was able to get this to work with yyaxis |
IIRC, commenting out that line will cause the plot line to be hidden behind the shaded error region. I think it's also possible to perform the same operation by reordering the axis children (which are the plotted objects). Can you send me the minimal example that generates the error? |
Was this issue ever resolved? I would like to use plotyy with shaded error bars. |
I haven't worked on it, no. Can you post a minimal example I can run that shows the problem? |
Hello! Below is an example that gives the error (granted you do get a plot even with the error, but in my application I use "hold on" to plot multiple things on on axis, with this application it will only plot one variable then stop due to the error): % given shadedErrorBar is present in current path X1=[1:120]; Y1=[Y11,Y12,Y13]; avgY1=mean(Y1,2); Y21=10^-6 * randi([0 1],120,1); Y2=[Y21,Y22,Y23]; avgY2=mean(Y2,2); figure(1), clf yyaxis left shadedErrorBar(X1,avgY1,stdv1) yyaxis right shadedErrorBar(X1,avgY2,stdv2) |
It looks like someone has attempted to create a program that works with your program to resolve this issue -- but I cannot get it to work because I do not know what c1 and c2 are (same problem as person who commented on that program): https://www.mathworks.com/matlabcentral/fileexchange/42578-shaded-error-bar-yy |
Ok. Thanks for the example code. I'll look into it. |
This example is more brief:
|
Or, more generally:
The error being:
|
@hollyhue can you please pull the latest version and see if it works for you? |
@raacampbell it works!!! Sorry for the 3 month delay in replying....oops. |
See also #3
The text was updated successfully, but these errors were encountered: