I'm making a plot and adding a recessionplot to it. The plot is saved as an .eps file.
As you can clearly see, the recessionplot is on top of the lines, which are needed on the plot.
This is only the case when the plot is saved. It looks fine in Matlab.
This is my code:
fig=figure plot(dates, bdat(:,2:6)*100)datetick('x',"yyyy")ylabel('Bond Yields (%)')xlabel('Time')set(0,"DefaultLegendAutoUpdate","off")legend('1 Year bond','2 Year bond','3 Year bond','4 Year bond','5 Year bond')recessionplotprint(fig, "-depsc", "-painters", "timeseriesyields.eps")
Best Answer