Re: How to plot ....................
- To: mathgroup at smc.vnet.net
- Subject: [mg59403] Re: How to plot ....................
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Mon, 8 Aug 2005 06:17:06 -0400 (EDT)
- Organization: Uni Leipzig
- References: <dd72u2$3oa$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
yes.
you can import the file as table and than you have
data=Table[{x,Sin[x],Cos[x]},{x,0,Pi,Pi/64}]
and
ListPlot[Drop[#, -1] & /@ data, PlotJoined ->
True]
ListPlot[Drop[#, {2}] & /@ data, PlotJoined ->
True]
will plot pairs of first and second and first and
last
column.
Regards
Jens
"T. K. Ghosh" <tkghosh at mp.okayama-u.ac.jp> schrieb
im Newsbeitrag news:dd72u2$3oa$1 at smc.vnet.net...
| Hi Math Guru,
|
| I need a help to plot a data file.
|
| Suppose I have a data file with the extension
filename.dat. This data file has more than 2
columns,
| say there are 3 columns. I would like to plot
column 1 vs column 2 and similarly column 1 vs
column 3 on the same frame.
| I can easily plot this data file using GNU plot.
| Is it possible to use Mathematica to plot such a
data
| file?
|
| Hope to get some reply.
| Thanking you in advance and with regards.
| Tarun.
|