Dear all,
I am currenty having the issues about disappeared line markers in the exported figures. The simplified example code is showing below:
clc, clear allx = 1:10;y1= 1*x;y2= 0*x;figurenewcolors = [1 0 0; 0 0 1];colororder(newcolors);[hAx,hLine1,hLine2] = plotyy(x,y2, x,y1); hold onhLine1.LineStyle = '-';hLine1.Marker = 'o';hLine2.LineStyle = '--';hLine2.Marker = 's';ax = gca;ax.YLim = ([0 1]);figurenewcolors = [1 0 0; 0 0 1];colororder(newcolors);yyaxis leftplot(x,y2, ' o-'); hold onylim([0 1])yyaxis rightplot(x,y1, ' s--'); hold on
For both methods, the pop-up figures have no issues. However, after saving the figures as .eps/.emf, the line markers disappears if yyaxis was used, while there is no issue if plotyy was used.
I could use plotyy for the figure plotting. However, I am wondering if someone help me with using yyaxis for the figure plotting? Many thanks.
Best Answer