Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: how-to show a contourplot together with a point grid

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72029] Re: how-to show a contourplot together with a point grid
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Sat, 9 Dec 2006 06:09:36 -0500 (EST)
  • Organization: Customer of PlusNet plc (http://www.plus.net)
  • References: <elbhqs$jsp$1@smc.vnet.net>

Here is an example of what you want:

<< "Graphics`Graphics`"

Create two tables to work with: the first is one quadrant of a 2D Gaussian 
bump function, and the second is the corresponding 2D lattice coordinates.

{m, n} = {64, 64};
mat = Table[Exp[-((i^2 + j^2)/5000)], {i, m}, {j, n}];
grid = Table[{i, j}, {i, m}, {j, n}];

Generate the displayed forms of the above two tables. Wrap this in 
DisplayTogether so that the generation of the two separate images is done 
silently, and only their superposition is actually displayed.

DisplayTogether[ListContourPlot[mat, PlotRange -> All], 
Show[Graphics[Map[Point, grid, {2}]],
   AspectRatio -> 1]]

Steve Luttrell
West Malvern, UK

"learner" <freephys at gmail.com> wrote in message 
news:elbhqs$jsp$1 at smc.vnet.net...
> Hi guys,
>    i have a matix of dimension {m,n} and make a listcontourplot out of
> it. and i have another matrix of the same dimension and make a plot by
> : Show[Map[Point,grid]].
>   i want to overlap these two plots together. And I have tried using
> the second one as the Epilog of the first one, but it did not work. any
> ideas?
>   generally, how can i overlap two plots in one figure?
>   thanks for your attentions and reply
> 



  • Prev by Date: Re: Solve chokes on Piecewise input that Reduce handles quite well??
  • Next by Date: Re: Re: Finding the periphery of a region
  • Previous by thread: RE: how-to show a contourplot together with a point grid
  • Next by thread: RE: how-to show a contourplot together with a point grid