How can I plot a figure with two y axis in my GUI
1 view (last 30 days)
Show older comments
My GUI contains 4 plots, the first one must me a plot over with time (v7k) on the x axis, torque(v9k) on the left y and RPM(v2k) on the right Y. I would like to plot it on handles.axest
I use this to plot them both on the left y:
handlet = plot(handles.axest, v7k,v9k, 'r', v7k, v2k, 'b' );
axes(handles.axest);
title('time series');
xlabel('Time \rightarrow');
ylabel('Amplitude \rightarrow');
Normally I would use plotyy(v7k,v9k,v7k,v2k), but that doesnt work in a GUI & handles environment.
Could someone tell me how I can plot a double Y axis plot in a GUI environment?
Many thanks!!
0 Comments
Answers (1)
Mike Garrity
on 30 Sep 2015
Why doesn't it work? Do you get an error message when you do:
plotyy(handles.axest, v7k,v9k,v7k,v2k)
If so, what error message?
0 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!