1

I have seen that on matlab there is the cmd recessionplot that adds bar of recessions to plots. But that is for the official US dates, do you know if there is a similar command for the european crisis as certified by cepr?

Klapaucius
  • 137
  • 1
  • 1
  • 9

1 Answers1

2

You need to do it manually. Here's an example of shading an area behind a plot. You just need to adapt the colors and the dates for the recession.

A very basic example about shading an area in a plot. Shading an area bounded by a curve might be of interest as well.

figure;
ha = area([4 6], [10 10]);
hold on
plot(1:10, 1:10,'r')
axis([1 10 1 10])
hold off
Bob Jansen
  • 8,552
  • 5
  • 37
  • 60
phdstudent
  • 8,306
  • 3
  • 24
  • 47