How can I plot a figure with two y axis in my GUI
Afficher commentaires plus anciens
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!!
Réponses (1)
Mike Garrity
le 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?
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!