Hello, below you can see the structure of my plot. At the moment Im using the same y axis for every plot but I want to use two different y axis. One for the bar plot (patch…) and a second one for the other plots. How can i do this?
f(8) = figure('Units','pixels',... 'position',[fLeft fBottom fWidth fHeight],... 'PaperType','A4',... 'PaperOrient','portrait',... 'PaperPositionMode', 'manual'); set(gcf, 'color', GrayLight); set(gcf, 'InvertHardCopy', 'off'); AxH = axes('NextPlot','add'); for k1 = 1:size(...) hLine=patch(...); end plot(...,...) hold on grid on datacursormode on title(...) xlabel(...) ylabel(...) xlim(...) ylim(...); plot(...,...) hold on plot(...,...) legend({'...'},... 'Position',[.... 'FontSize',LegendFontSize,... 'Color',Gray); xTick=... set(gca,'Color',GrayLight, 'XTick', xTick);
Best Answer