Effacer les filtres
Effacer les filtres

Some issue with recessionplot(.) function of 2012a

1 vue (au cours des 30 derniers jours)
Nick Baltas
Nick Baltas le 26 Mar 2012
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

Réponse acceptée

Oleg Komarov
Oleg Komarov le 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])

Plus de réponses (0)

Catégories

En savoir plus sur Data Preprocessing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by