The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Help with "recession bar" graph
Replies: 6   Last Post: Feb 13, 2013 4:48 AM

Advanced Search

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

Posts: 95
Registered: 3/29/11
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

On 2/8/2013 11:12 AM, Bob Hanlon wrote:
> Show[
> RegionPlot[
> {6 <= x <= 13, 19 <= x <= 25, 39 <= x <= 46},
> {x, 0, 50}, {y, 0, 100},
> BoundaryStyle -> None],
> ListLinePlot[data]]

This is informative, but it does not meet my needs.
You put the RegionPlot first, as needed for proper overlay,
but then it hijacks the plot properties.
I'm really looking for something equivalent to Matplotlib's
axvspan, in order to add a Graphics element to an existing plot.
For now I'm putting a rectangle in the Prolog and handling
the y-coordinates myself, but I'd welcome a better solution.

Alan Isaac

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.