Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*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 1999

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

Search the Archive

Re: Help! ListContourPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20485] Re: Help! ListContourPlot
  • From: "Stephen P Luttrell" <luttrell at signal.dra.hmg.gb>
  • Date: Wed, 27 Oct 1999 02:04:49 -0400
  • Organization: Defence Evaluation and Research Agency
  • References: <7v3dog$649@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jinfeng Liu <jinfeng at tw3042.cpmc.columbia.edu> wrote in message
news:7v3dog$649 at smc.vnet.net...
>
> 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"
>
>...data 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 signal.dera.gov.uk
01684-894046 (phone), 01684-894384 (fax)
http://www.dera.gov.uk/cis5pip/Welcome.html




  • 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?