Re: ? about MatrixPlot used with ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg107710] Re: [mg107682] ? about MatrixPlot used with ListPlot
- From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
- Date: Wed, 24 Feb 2010 06:19:15 -0500 (EST)
- References: <201002230004.TAA26491@smc.vnet.net>
Hi, using ArrayPlot could help mp = ArrayPlot[ Table[N[Sin[0.001 x]*Cos[0.1 y]], {y, 0, 10}, {x, 0, 5000}], PlotRangePadding -> 0, DataRange -> {{0, 5000}, {0, 10}}]; lp = ListPlot[Table[{x, 5 Cos[0.001 x] + 5}, {x, 0, 5000, 10}], PlotRange -> {{0, 5000}, {0, 10}}, PlotStyle -> {Red}]; Show[{mp, lp}, AspectRatio -> 1/4] but I don't have your data, so there's a good chance it's not working in your case. Cheers Patrick On Mon, 2010-02-22 at 19:04 -0500, Anne Goj wrote: > Hi, > I am trying to show a set of (x,y) points on top of a matrix plot > > plotA = ListPlot[dataA, PlotJoined -> False, PlotStyle -> { PointSize[0.04]}, PlotRange -> {{1, 50000}, {1, 10}}] > > plotB = MatrixPlot[dataB, DataReversed ->{True, False}] > > > Show[plotB,plotA] > > but I am getting plotA back with no matrix plot underneath and the axis > ticks look messed up like it is trying to include plotB but the size/range is wrong. The data ranges for the 2 plots are the same. I have fiddled with AspectRatios and other parameters but can't find a fix. > Unfortunately, due to the large amount of data in dataB (a 50000 x 10 matrix), ListDensityPlot doesn't work as well as MatrixPlot. > Any help with how to show both plots together would be appreciated. > -A.G. >
- References:
- ? about MatrixPlot used with ListPlot
- From: Anne Goj <agoj@mail.uh.edu>
- ? about MatrixPlot used with ListPlot