Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6060

Re: Plotting stacked lineplots

From Armand Tamzarian <mike.honeychurch@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Plotting stacked lineplots
Date 2011-10-31 11:49 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j8m211$rjc$1@smc.vnet.net> (permalink)
References <j8j5ef$f7l$1@smc.vnet.net>

Show all headers | View raw


On Oct 30, 8:29 pm, Deep <deepankar.sha...@gmail.com> wrote:
> Is it possible to use mathematica to plot stacked lineplots as shown
> athttp://www-958.ibm.com/software/data/cognos/manyeyes/page/Stack_Graph...
> ?
>
> Regards,
> Deepankar

just modifying a post I sent a couple of minutes ago. I was doing it
on the fly and it was a tad overcomplicated. Replace this line:

newData[[All, All, 2]] = Transpose[MapThread[Accumulate[{#1, ##2}] &,
data[[All, All, 2]]]]

with this one:

newData[[All, All, 2]] = Accumulate[data[[All, All, 2]]]

Mike

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Plotting stacked lineplots Deep <deepankar.sharma@gmail.com> - 2011-10-30 09:29 +0000
  Re: Plotting stacked lineplots Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-10-31 11:55 +0000
  Re: Plotting stacked lineplots Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-10-31 11:49 +0000
  Re: Plotting stacked lineplots "Chris Degnen" <degnen@cwgsy.net> - 2011-10-31 12:10 +0000

csiph-web