Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2479
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ethan A Merritt <EAMerritt@gmail.com> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Problems with standard input |
| Date | Mon, 02 Jun 2014 00:13:23 -0700 |
| Organization | made entirely of Lego |
| Lines | 73 |
| Message-ID | <lmh86m$sa2$1@dont-email.me> (permalink) |
| References | <24a08756-c0ff-477d-91c7-f928d1ac1499@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| Injection-Date | Mon, 2 Jun 2014 07:13:26 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="7bbfccb08e3cb0f92ebf95516f5f5a81"; logging-data="28994"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oQyhXBFh6obcKyYHisQrX" |
| User-Agent | KNode/4.11.4 |
| Cancel-Lock | sha1:biNsluk/Hm6lhYdWeNhBCbLnrhA= |
| Xref | csiph.com comp.graphics.apps.gnuplot:2479 |
Show key headers only | View raw
paul.d@soi-team.org wrote: > Hi, > > I have been trying to plot some data from a Seabird 45 TSG, and it > looks like this: > > 05/31/2014,00:00:32.394,t1= 29.2284, c1= 5.70674, s= 34.6807, > sv=1534.075, t2= 25.005 05/31/2014,00:00:33.424,t1= 29.2282, c1= > 5.71173, s= 34.7150, sv=1534.112, t2= 25.005 > > I have not found a way to get gnuplot to deal with the "t1=" type > labels, so I've been piping it through multiple instances of sed to > get this: > > 05/31/2014,00:00:32.394, 29.2284, 5.70674, 34.6807, 1534.075, > 25.005 > 05/31/2014,00:00:33.424, 29.2282, 5.71173, 34.7150, 1534.112, > 25.005 > > Which gnuplot will deal with. However, I've not managed to make it > take the same data from standard input. If I try to do that, I get > this: > > plot '-' using 1:3 > ^ > "plotseatemp.gnuplot", line 19: warning: Skipping data file with no > valid points > > plot '-' using 1:3 > ^ > "plotseatemp.gnuplot", line 19: x range is invalid > > The script I'm using is: > > # Gnuplot script to plot out some SBE45 data > # > set title "Seabird Temperature" > set xlabel "Date\nTime" > # > #set terminal png > # > # NB: Gnuplot does not understand milliseconds > set timefmt "%m/%d/%Y,%H:%M:%S" > set yrange [20:32] > set xdata time > set datafile separator "," > # > # X-axis data (date/time) > # set xrange [ "05/31/2014":"06/01/2014" ] > set ylabel "Temperature (deg C)" tc lt 2 > # > set format x "%d/%m\n%H:%M" > plot '-' using 1:3 > > If I change the - to test.dat, which contains data in exactly the same > format as the piped data coming into standard input, it works fine. > > Any ideas where I am going wrong with standard input? Your script and data work for me in current gnuplot (4.6.5) and also an older one I have around (4.4.4). Is your version even older than that? Also - gnuplot does understand milliseconds now. Ethan > > Thanks! > > Paul.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problems with standard input paul.d@soi-team.org - 2014-06-01 16:33 -0700
Re: Problems with standard input Ethan A Merritt <EAMerritt@gmail.com> - 2014-06-02 00:13 -0700
Re: Problems with standard input paul.d@soi-team.org - 2014-06-02 01:20 -0700
csiph-web