I have two plots of some mean value (hh) and two fill (he) plots of the confidence intervals for the associated mean values. I would like to be able to create only two legend entries instead of four so that the legend object is a combination of the plot and fill objects (Fill overlayed by the plot).
I've tried using hggroup to set parent figure handles to the plot and fill objects but I cannot get the legend to display the way I would like.
h1 = hggroup;h2 = hggroup;set(hh1, 'Parent', h1);set(he3, 'Parent', h1);set(hh2, 'Parent', h2);set(he4, 'Parent', h2);
Is there a way to have overlayed legend entries for two different figure objects?
Best Answer