From: Vadim Zaliva on
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

From: David Park on
What happens if you Show them in the opposite order?


David Park
djmpark(a)comcast.net
http://home.comcast.net/~djmpark/



From: Vadim Zaliva [mailto:krokodil(a)gmail.com]

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



From: David Park on
Actually you did show them in the right order, so we would have to see a
real example.


David Park
djmpark(a)comcast.net
http://home.comcast.net/~djmpark/




From: Vadim Zaliva [mailto:krokodil(a)gmail.com]

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



From: Vadim Zaliva on

On May 19, 2010, at 6:06 , David Park wrote:

> What happens if you Show them in the opposite order?

It still show array plot.

From: Vivek Joshi on
On 5/19/10 6:01 AM, Vadim Zaliva wrote:
> 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}
>
>
This looks fine to me,

l = RandomReal[1, {44, 2000}];

a = ConstantArray[10, {2000}];
b = ConstantArray[20, {2000}];
c = ConstantArray[30, {2000}];

ap = ArrayPlot[l, AspectRatio -> 1];

lp = ListLinePlot[{a, b, c}, PlotStyle -> {Thick}];

Show[ap, lp, FrameTicks -> Automatic]

Vivek