Re: Multi-Colored Filling in DateListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg104189] Re: Multi-Colored Filling in DateListPlot
- From: jroge <jroge at mac.com>
- Date: Thu, 22 Oct 2009 02:20:04 -0400 (EDT)
- References: <hbhhg5$20u$1@smc.vnet.net> <hbjtj9$5sj$1@smc.vnet.net>
On Oct 20, 1:49 am, Armand Tamzarian <mike.honeychu... at gmail.com> wrote: > On Oct 19, 6:11=C2 am, jroge <jr... at mac.com> wrote: > > > > > > > I am working on developing some financial reports and I have gotten > > stuck on using multiple colors in the filling of a DateListPlot. I > > would like to have the color of the filling alternate between blue and > > pink each quarter (or year depending on the plot) rather than a single > > color in the entire filling. Here is an example of what I am trying to > > do: > > >http://online.wsj.com/article/SB125479559237566623.html > > > I suspect that FillingStyle is the function I need to use, but calling > > out each quarter's (or year's) data is beyond me. Any thoughts? I have > > been using a fairly generic plot of GE stock data for exploration: > > > DateListPlot[FinancialData["GE", "Jan. 1, 2008"], Joined -> True, > > Filling -> Bottom] > > > Thanks, > > > Jroge > > I saw a blog post that describes how to do this: > > http://wildebeests.wordpress.com/2009/08/16/creating-highlighting-ban... > > Easiest way is to split your data into separate lists for periods you > want shaded eg. months, quarters etc. > > DateListPlot[{month1,month2,month3 ...}, Filling{Filling=E2=86=92{{= 1=E2=86= > =92Bottom}, > {1=E2=86=92Top}, {2=E2=86=92Bottom}, {2=E2=86=92Top},= =E2=80=A6}] > > Mike This isn't quite what i was looking to do, but what the author describes in his blog post is also quite useful. Thank you for sending.