Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: combining ArrayPlot with ListLinePlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109854] Re: combining ArrayPlot with ListLinePlot
  • From: Vivek Joshi <vivekj at wolfram.com>
  • Date: Wed, 19 May 2010 20:15:57 -0400 (EDT)

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


  • Prev by Date: Re: combining ArrayPlot with ListLinePlot
  • Next by Date: Re: Scroll content inside InputField?
  • Previous by thread: Re: combining ArrayPlot with ListLinePlot
  • Next by thread: Re: combining ArrayPlot with ListLinePlot