Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3543

Ignore missing data in the desired way

X-Received by 10.107.162.209 with SMTP id l200mr3974082ioe.4.1484904902763; Fri, 20 Jan 2017 01:35:02 -0800 (PST)
X-Received by 10.157.56.117 with SMTP id r50mr1384170otd.12.1484904902738; Fri, 20 Jan 2017 01:35:02 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!r185no785742ita.0!news-out.google.com!78ni13075itm.0!nntp.google.com!r185no777410ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Fri, 20 Jan 2017 01:35:02 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=195.203.130.6; posting-account=hscLEwoAAAAPD39jqvzvftC_ujaypYl2
NNTP-Posting-Host 195.203.130.6
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <4eb939ed-8e0f-45aa-a163-d1714b70536a@googlegroups.com> (permalink)
Subject Ignore missing data in the desired way
From u.gotzes@gmail.com
Injection-Date Fri, 20 Jan 2017 09:35:02 +0000
Content-Type text/plain; charset=UTF-8
Xref csiph.com comp.graphics.apps.gnuplot:3543

Show key headers only | View raw


Hi there,

I can't get the script below to do what I want, namely make gnuplot draw continuous lines between the respective datasets "Yes", "No" and "Maybe". Can anybody help?

Best
Uwe

#!/gnuplot
#
#    
#    	G N U P L O T
#    	Version 5.0 patchlevel 3    last modified 2016-02-21 
#    
#    	Copyright (C) 1986-1993, 1998, 2004, 2007-2016
#    	Thomas Williams, Colin Kelley and many others
#    
#    	gnuplot home:     http://www.gnuplot.info
#    	faq, bugs, etc:   type "help FAQ"
#    	immediate help:   type "help"  (plot window: hit 'h')
set terminal png
set output "out.png"
set datafile missing "?"
set style data points
set xdata time
set timefmt "%Y-%m-%d"
set xrange ["2017-01-01":"2017-01-09"]
set format x "%m/%d"
set timefmt "%Y-%m-%d"
#set table 'tmp.dat'
$data << EOD
Date	        Yes     No	Maybe
2017-01-01	?	9	?
2017-01-02	2	?	1
2017-01-03	3	7	?
2017-01-04	?	6	?
2017-01-05	5       5	9
2017-01-06	6       4	?
2017-01-07      7       ?	1
2017-01-08      ?       2	?
2017-01-09      9       1	5
EOD
plot "$data" using "Date":"Yes" w l, "$data" using "Date":"No" with steps, "$data" using "Date":"Maybe" smooth sbezier

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Ignore missing data in the desired way u.gotzes@gmail.com - 2017-01-20 01:35 -0800
  Re: Ignore missing data in the desired way Karl Ratzsch <mail.kfr@gmx.net> - 2017-01-20 12:05 +0100
    Re: Ignore missing data in the desired way Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-01-20 10:19 -0800
  Re: Ignore missing data in the desired way u.gotzes@gmail.com - 2017-01-20 12:49 -0800
    Re: Ignore missing data in the desired way sfeam <sfeam@users.sourceforge.net> - 2017-01-21 16:26 -0800

csiph-web