AW: too many {{}}'s for listplot
- To: mathgroup at smc.vnet.net
- Subject: [mg38407] AW: [mg38334] too many {{}}'s for listplot
- From: Matthias.Bode at oppenheim.de
- Date: Sat, 14 Dec 2002 03:19:28 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi Encinosa, try this: yourlist= {{{0.517671, 9.75893}}, {{0.562696, 8.33465}}, {{0.601599, 7.26733}}, {{0.635675, 6.38612}}} Flatten[yourlist] lst02 = Partition[%, 2] ListPlot[lst02] Please note that you have to put an extra pair of braces in the very first and the very last position of your list to make it a list Mathematica will accept. It appears to be quite improbable that z2=Table[....] generates the list structure you quoted; please check. Best regards, Matthias Bode. -----Ursprüngliche Nachricht----- Von: encinosa [mailto:mencinosa1 at comcast.net] Gesendet: Donnerstag, 12. Dezember 2002 07:36 An: mathgroup at smc.vnet.net Betreff: [mg38334] too many {{}}'s for listplot i am trying to do a poincare map. i generate x[t] and x'[t]. i write z2 = Table[Evaluate[{x[t] , x'[t]} /. %], {t, 0, 10, .005}] ListPlot[z2] and i get a set of values that looks like {{0.517671, 9.75893}}, {{0.562696, 8.33465}}, {{0.601599, 7.26733}}, {{0.635675, 6.38612}},.... the problem is when i use ListPlot[z2] i get the dreaded "is not a list of numbers" error. if i remove the extra parenthesis by hand it works, but thats a tedious business several hundred points. i am sure this is a simple thing to fix. i would appreciate any help. mario