Re: ListPlot and List problem
- To: mathgroup@smc.vnet.net
- Subject: [mg10887] Re: ListPlot and List problem
- From: Bill Bertram <wkb@ansto.gov.au>
- Date: Thu, 12 Feb 1998 20:15:19 -0500
- Organization: ANSTO
- References: <6bprkj$arg@smc.vnet.net>
Lars Freund wrote:
>
> I want to plot data that is stored in a file having in the format:
> <frequence> <phase> <amplification>
> and want to plot the BODE-Diagram. So I did:
> myData = ReadList["filename",{Number, Number, Number}];
> and now want a plot from <phase> over <frequence> and <amplification>
> over <frequence>I tried things like
>
> ListPlot[Transpose[testData][[3]],PlotJoined->True]
>
Lars,
One way to do it is by modifying your code to;
myData = Transpose[ReadList["filename",{Number, Number, Number}]];
and then plot using eg,
ListPlot[Transpose[{myData[[1]],myData[[3]]}],PlotJoined->True]
Hope this helps.
Cheers,
Bill