Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4176
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: plot datafile with a blank between +- and some data |
| Date | 2019-04-04 23:47 +0200 |
| Organization | solani.org |
| Message-ID | <q85u1t$1vn$1@solani.org> (permalink) |
| References | <q81kck$ifh$1@dont-email.me> <q82uah$dg1$1@dont-email.me> <q833op$5u4$1@solani.org> <q84e5s$i2f$1@dont-email.me> |
Am 04.04.2019 um 10:10 schrieb Jörg Buchholz: > On 03.04.2019 22:06, Karl Ratzsch wrote: >> col1(st) = st[1:2] * 1.0 >> col4(st) = (st[28:28] eq "-" ? -1 : 1) * st[29:34] >> stcol(n) = stringcolumn(n) >> >> set table >> plot $dat us (col1(stcol(1))):(col4(stcol(1))) with table >> unset table > > > Thanks for your solution. There are some more columns. So I think, for > me, it is easer do handle the datafile with sed. Me too. If the format is not totally fixed like in your example, this becomes bedlam with gnuplot string evaluation. Certainly possible, but it is probably easier to learn regular expressions. :-)
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
plot datafile with a blank between +- and some data Jörg Buchholz <bookwood4new@freenet.de> - 2019-04-03 08:38 +0200
Re: plot datafile with a blank between +- and some data Jörg Buchholz <bookwood4new@freenet.de> - 2019-04-03 20:33 +0200
Re: plot datafile with a blank between +- and some data Karl Ratzsch <mail.kfr@gmx.net> - 2019-04-03 22:06 +0200
Re: plot datafile with a blank between +- and some data Jörg Buchholz <bookwood4new@freenet.de> - 2019-04-04 10:10 +0200
Re: plot datafile with a blank between +- and some data Karl Ratzsch <mail.kfr@gmx.net> - 2019-04-04 23:47 +0200
csiph-web