Hallo liebe Matlab-Profis,
ich brauch (mal wieder :D ) eure Hilfe:
In einem yyplot möchte ich aus Gründen der Übersicht eine zweite Legende unterbringen. Im normalen plot ging
h_leg = legend([h(1) h(2) h(3)],{'text' 'text' 'text'});
set(h_leg,'location','NorthWest','FontSize',11,'EdgeColor','w','Color','w')
ah=axes('position',get(gca,'position'),'visible','off');
h_leg2 = legend(ah,[h(6) h(7)],{'text' 'text'},'location','North');
set(h_leg2,'location','North','FontSize',10,'EdgeColor','w')
Ich habe versucht, es auf den yyplot anzupassen, ging aber nicht.. Mein Versuch:
[AX,H11,H21] = plotyy(x,y11,x,y21,'plot');
h_leg = legend([H11],{'text'});
set(h_leg,'location','NorthWest','FontSize',11,'EdgeColor','w','Color','w')
ah=axes('position',get(gca,'position'),'visible','off'); % <----- ??? schätze hier ist der Fehler, nur wie ändern? und was tut es eigentlich?
h_leg2 = legend(ah,[H21],{'text'},'location','North');
set(h_leg2,'location','North','FontSize',10,'EdgeColor','w')
Hat jemand eine Idee? Ich wäre euch sehr dankbar für eure Hilfe.
Grüße
↧