MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting stacked lineplots

  • To: mathgroup at
  • Subject: [mg122522] Re: Plotting stacked lineplots
  • From: Armand Tamzarian <mike.honeychurch at>
  • Date: Mon, 31 Oct 2011 06:49:08 -0500 (EST)
  • Delivered-to:
  • References: <j8j5ef$f7l$>

On Oct 30, 8:29 pm, Deep <deepankar.sha... at> wrote:
> Is it possible to use mathematica to plot stacked lineplots as shown
> at
> ?
> 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]]]


  • Prev by Date: RE: Simple question about inverse of a function
  • Next by Date: Re: delay evaluation inside RecurrencTable?
  • Previous by thread: Re: Plotting stacked lineplots
  • Next by thread: calculating points