From: jihane on 3 Mar 2010 05:50 thank you very much for the replies. the way i want to plot this data is each set of data<0.1 in a single plot because the data is like 1.5,1.6,1.7,1.5,0.01,0.09,0.1,1.6,1.8,1.9,0.1,0.08,0.07 How can i plot the set of triples in a single plot if I dont know at what position in the list values<0.1 starts and ends? please let me know if my question isnt clear
From: Luci Ellis on 4 Mar 2010 05:29 On 2010-03-03 21:50:55 +1100, jihane said: > thank you very much for the replies. the way i want to plot this data > is each set of data<0.1 in a single plot because the data is like > 1.5,1.6,1.7,1.5,0.01,0.09,0.1,1.6,1.8,1.9,0.1,0.08,0.07 > How can i plot the set of triples in a single plot if I dont know at > what position in the list values<0.1 starts and ends? please let me > know if my question isnt clear Jihane, I assume you meant "each set of data < 0.1 in its own plot". My post will do precisely that: plotData = SplitBy[Replace[Transpose[{X0D,Y0D,Z0D}], x_?(Last[#] > .01 &) -> Null, 1], Head] /. {Null} -> Sequence[] And then plot with: Grid[Partition[Graphics3D[{Blue, Thick, Line[#]}] & /@ plotData, 2]] Or if you want three time series: Grid[Partition[ListLinePlot[#] & /@ (Transpose /@ plotData), 2]] Hope that helps. Luci
From: jihane on 5 Mar 2010 04:31 Thank you all for your precious help! it works perfect now
First
|
Prev
|
Pages: 1 2 Prev: Autocalibration for camera Next: apparently simple graphic won't print when SaveAs[] PDF |