I am trying to plot a figure with five sets of data with subplot is having individual legend but the problem is axis is getting mismatched when i trying to put the legend of plots having varies length of text.
x = [1:10];y = 2*x;z = x+1.25*y;z1 = z+x;subplot(4,1,1);plot(x);legend('x Variable','Location','NorthEastOutside');subplot(4,1,2);plot(y);legend('y var','Location','NorthEastOutside');subplot(4,1,3);plot(z);legend('z','Location','NorthEastOutside');subplot(4,1,4);plot(z1);legend('z1 point','Location','NorthEastOutside');
When i am trying to plot.. i am getting the Figure like this –
All legends when location is 'NorthEastOutside' [when outside the plot] getting allocated right alignment of the legend. I want the data with equal axes length or left justified legend.
Is it possible to get the data with Left Justified without comprising on the axes length…?
Best Answer