MathGroup Archive 1998

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

Search the Archive

Re: ListPlot and List problem

Lars Freund wrote:
> Hi,
> 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]
> but I always got the wrong list-format. I need
> {freqence1,phase1},{freqence2, phase2}...
> and I always get things like
> {phase1, phase2, phase3} or so.
> Can anybody help me a bit?
> Thanks,
> Lars

If the list that you get from ReadList is

myData= {{f[i], p[1], a[1]}, {f[i], p[2], a[2]}, {f[i], p[3], a[3]}, 
  {f[i], p[4], a[4]}};

Then we can get


{{f[i], p[1]}, {f[i], p[2]}, {f[i], p[3]}, {f[i], p[4]}}


{{f[i], a[1]}, {f[i], a[2]}, {f[i], a[3]}, {f[i], a[4]}}

Allan Hayes
Training and Consulting
Leicester, UK
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642

  • Prev by Date: Re: Displaying symbols palette in v3.0
  • Next by Date: Re: Solve, Plot and limits
  • Prev by thread: Re: ListPlot and List problem
  • Next by thread: Re: ListPlot and List problem