plotyyy: third plot as bar
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hey to everyone,
is it possible for the plotyyy-function to have the third plot as a bar? I don't know how to solve the problem.
I would be pleased if somebody can give me an idea.
0 commentaires
Réponses (1)
Joseph Cheng
le 9 Fév 2016
quickest and easiest way would be to edit the plotyy line of the graph to be
[ax,hlines(1),hlines(2)] = plotyy(x1,y1,x2,y2,'bar','plot'); %≈line 45 (?)
and the first xy entry will be the the bar chart.
2 commentaires
Joseph Cheng
le 9 Fév 2016
Modifié(e) : Joseph Cheng
le 9 Fév 2016
look at my comment. you'd have to change the plotyyy() function code around line 45. maybe change and resave the function as barplotplot().
Voir également
Catégories
En savoir plus sur Two y-axis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!