[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuplot-info
Subject: Re: [Gnuplot-info] Displaying a bunch of Lines of given Data
From: Thomas Sefzick <t.sefzick () fz-juelich ! de>
Date: 2009-01-16 9:35:03
Message-ID: 21495510.post () talk ! nabble ! com
[Download RAW message or body]
in the development version (4.3) of gnuplot it is possible to determine
the actual position inside a data block - see 'help pseudocolumns' - and
treat data rows differently depending on their position.
e.g.
a=0.5
splot "measurements.dat" w l, "" every 1::0::0 w p, "" us
1:2:(column(0)>0?a*$3:$3) w lp
scaling of 'vectors' between subsequent data points could also be done:
a=0.5
splot "measurements.dat" w l, \
'' every 1::0::0 w p, \
'' us \
(column(0)==0?(x1=$1,$1):x1+($1-x1)*a)\
:(column(0)==0?(y1=$2,$2):y1+($2-y1)*a)\
:(column(0)==0?(z1=$3,$3):z1+($3-z1)*a) \
w lp
H0LL0 wrote:
>
> Hmmm, I think gnuplot is not able to do this in an easy way. Since I've
> been dealing with gnuplot a couple of days now at work, I think I
> understood how gnuplot works. Although it is quasi Turing complete it is
> not able to do everything you want "out of the box".
> Anyway my problem isn't present anymore, since I solved it outside of
> gnuplot now, but my solution is less comfortable than I wished.
>
> I'd still love to do some different Operations on the data before
> displaying it, but if the data is stored in datablocks this doesn't seem
> to be possible.
>
> Hence the more detailed question is:
>
> Do you think there is an alternative way to store the data (like in matrix
> form or sth.), so I can do some operations on it before displaying?
>
--
View this message in context: \
http://www.nabble.com/Displaying-a-bunch-of-Lines-of-given-Data-tp21432852p21495510.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic