Some issue with recessionplot(.) function of 2012a

3 views (last 30 days)
Hi all,
I have just installed 2012a and tried the great function recessionplot(.). The result it great! However, after the application of this function, the x-axis of the plot has along with the dates, the factor 10^5 which is of course the scaling factor of the dates if one does not datenum(.) a time-series plot.
Even if one looks at the MATLAB help file for the function, the same problem appears in the example presented therein (look at the first 2 plots and notice the factor 10^5 appearing in the second plot) http://www.mathworks.co.uk/help/toolbox/econ/recessionplot.html
Any idea how to remove it without causing much inconvenience/hassle?
Many thanks, Nick

Accepted Answer

Oleg Komarov
Oleg Komarov on 26 Mar 2012
Old bug (although it seems it's not reported):
set(gcf,'renderer','zbuffer');
But it doesn't support transaprency of the patch, thus set the 'FaceColor' to grey:
h = recessionplot;
set(gcf,'renderer','zbuffer')
set(h,'FaceColor',[.91 .91 .91])

More Answers (0)

Categories

Find more on Data Preprocessing in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!