Prev: Select list elements and exchange them
Next: Equals, Less, Greater, etc; Confused by this simple output.
From: Vadim Zaliva on 19 May 2010 07:01 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 19 May 2010 20:10 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 19 May 2010 20:12 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 19 May 2010 20:12 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 19 May 2010 20:14 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
|
Next
|
Last
Pages: 1 2 3 Prev: Select list elements and exchange them Next: Equals, Less, Greater, etc; Confused by this simple output. |