Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Help with "recession bar" graph
Replies: 4   Last Post: Feb 9, 2013 12:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Josh Zirbel

Posts: 2
Registered: 11/25/12
Re: Help with "recession bar" graph
Posted: Feb 9, 2013 12:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Show[
{DateListPlot[yourData[[All, {1, 2}]]],
Graphics[
{Thick,
Green,
Rectangle[
{AbsoluteTime[{2013, 1, 21}], 90},
{AbsoluteTime[{2013, 1, 31}], 100}
]
}
],
DateListPlot[yourData[[All, {1, 2}]]
]
}
]

On Friday, January 30, 2004 1:34:59 AM UTC-8, Mark Coleman wrote:
> Hi,
>
> I was wondering if someone might assist me in the construction of a
> "recession bar" graph. This type of graph is often used in economics
> to depict interesting sub-periods on a time series graph. .For this
> type of graph, the user would specify one or more intervals of
> interest. Each interval would be depicted by a shaded vertical column,
> the width of which spans the regions of interest (image a series of
> possibly irregularly spaced vertical grid lines, with shading in
> between). For an example, see
> http://www.cepr.org/data/eurocoin/recession/
>
> I've been trying to figure out a way to get gridlines to do this in
> LIstPlot. Any ideas?
>
> Thanks,
>
> Mark





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.