MathGroup Archive 1999

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

Search the Archive

Re: Help! ListContourPlot

  • To: mathgroup at
  • Subject: [mg20485] Re: Help! ListContourPlot
  • From: "Stephen P Luttrell" <luttrell at>
  • Date: Wed, 27 Oct 1999 02:04:49 -0400
  • Organization: Defence Evaluation and Research Agency
  • References: <7v3dog$>
  • Sender: owner-wri-mathgroup at

Jinfeng Liu <jinfeng at> wrote in message
news:7v3dog$649 at
> Hi, all
> Please help me on this!
> I have a file as shown in the attachment, I want to make a contour plot
> out of it. I have been playing around with it for several days, but
> still cannot find a proper way to read in the file in a correct format
> that can be used by ListContourPlot.
> Could anyone please show me how to do that plot in detail? Your help is
> greatly appreciated.
> Jinfeng
> filename="tmp.dat"
> snipped...

Here is one way of doing what you want:

data = ReadList["tmp.dat", {Real, Real, Real}]
datainterp = Interpolation[data]
ContourPlot[datainterp[x, y], {x, 100, 800}, {y, 1, 5}]

Stephen P Luttrell
Room EX21, Defence Evaluation and Research Agency
Malvern, Worcs, WR14 3PS, U.K.
luttrell at
01684-894046 (phone), 01684-894384 (fax)

  • Prev by Date: Re: Want to plot list with modified x-axis.
  • Next by Date: Re: rotation matrix to Yaw-Pitch-Roll angles
  • Previous by thread: Help! ListContourPlot
  • Next by thread: How to select all cells ABOVE a given cell?