MathGroup Archive 2010

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

Search the Archive

Re: combining ArrayPlot with ListLinePlot


Hi,

and setting the DataRange (or searching this forum before asking)
doesn't help?

data = Table[Sin[x*y], {y, -Pi, Pi, 0.1}, {x, -Pi, Pi, 0.1}];
ap = ArrayPlot[data, DataRange -> {{-1, 1}, {-1, 1}}];
lp = ListLinePlot[Transpose[data][[10]], DataRange -> {-1, 1},
   PlotStyle -> {{Thick, Red}}];
Show[ap, lp]

Cheers,
Patrick

Am May 19, 2010 um 1:01 PM schrieb Vadim Zaliva:

> I have a strange problem with combining 2 plots:
>
> ap = ArrayPlot[Transpose[l]]
> lp = ListLinePlot[{a, b, c}]
>
> Each of 'ap' and 'lp' is shown correctly. However combining them via:
>
> Show[ap,lp]
>
> always shows just ap.
>
> Dimensions[Transpose[l]] is {44, 2000}
> a,b,c have same dimension {2000}
>
> I feel like I am missing something obvious here...
>
> Vadim
>



  • Prev by Date: Re: Equals, Less, Greater, etc; Confused by this simple output.
  • Next by Date: Re: combining ArrayPlot with ListLinePlot
  • Previous by thread: combining ArrayPlot with ListLinePlot
  • Next by thread: Re: combining ArrayPlot with ListLinePlot