Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Conditional splot - can't seem to get it right.

8 views
Skip to first unread message

moggen...@gmail.com

unread,
Apr 29, 2013, 8:42:29 AM4/29/13
to
Hi,

I'm having some trouble converting the following data-set:
https://www.dropbox.com/s/695892v4idboou4/scan.txt

into a graph looking like:
https://www.dropbox.com/s/shh0j3ozinrxnl1/pes.bmp

This is where I'm at so far:
https://www.dropbox.com/s/h8eq65apnz684bj/mypes.bmp

I can get the general plot using all data-points however I can't seem to get the "smoothness" nor can I eliminate the outer most data-points in the same way as the image posted. The two separate lines I've managed to add however.

Been playing around with the, splot "scan.txt" u ($1 condition ? $1 : 1/0):$2..., command for a while now but my unfamiliarity with gnuplot has the upper hand. If anyone feels they have a some spare time I would be grateful if you could either link a script or point me in the right direction.

/Marcus

Karl

unread,
Apr 29, 2013, 11:09:51 AM4/29/13
to
fname = "hyper.dat"

set dgrid3d 40,40

set table fname.".tmp"

splot fname using 1:2:3

unset table


unset dgrid3d

splot fname.".tmp" \
using 1:2:($1+$2 > 3 && $1-$2 > 3 ? $3 : 1/0) with lines


Don�t know where the spikes come from.

Karl
0 new messages