Re: ? about MatrixPlot used with ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg107691] Re: ? about MatrixPlot used with ListPlot
- From: dh <dh at metrohm.com>
- Date: Tue, 23 Feb 2010 08:02:56 -0500 (EST)
- References: <hlv62p$pr4$1@smc.vnet.net>
Hi, dataA has an x-range of 50000, but dataB of 10. No wonder you only see the first data, the second will be very very thin. Could it be that by: DataReversed ->{True, False} you intend to transpose the matrix? This would be accomplished by: Transpose@dataB. Daniel On 23.02.2010 01:04, 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. > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>