Dear all,
I am trying to plot 6 graphs in a single plot using subplot function. I would like them to look in a square shape with same axes lengths. However, this is what I get (see attached figure). I have not made any arrangements in my code on subplots.
The code:
figure(3) subplot(6,2,1,'align'); title(['Episode: ',int2str(i),' epsilon: ',num2str(epsilon)]); plot(xpoints,ypoints,'Color',[0,0.7,0.9]); pbaspect([2 2 1]); xlabel('r'); ylabel('x'); drawnow subplot(6,2,2,'align'); plot(xpoints,zpoints, 'Color','r'); pbaspect([1 1 1]); xlabel('r'); ylabel('y'); drawnowsubplot(6,2,3,'align'); plot(xpoints,lpoints, 'Color','r');pbaspect([1 1 1]);xlabel('r');ylabel('z'); drawnowsubplot(6,2,4,'align'); plot(xpoints,convpoints, 'Color','r'); pbaspect([1 1 1]);xlabel('r');ylabel('m'); drawnowsubplot(6,2,5,'align'); plot(xpoints,explore, 'Color','b'); pbaspect([1 1 1]);xlabel(r');ylabel('n'); drawnowsubplot(6,2,6,'align'); plot(xpoints,gpoints, 'Color','r'); pbaspect([1 1 1]);xlabel('r');ylabel('k'); drawnow
Really appreciate it if someone can help with this.
Kind Regards,
Kyana
Best Answer