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

Newsgroups comp.graphics.apps.gnuplot
Date 2017-01-20 01:35 -0800
Message-ID <4eb939ed-8e0f-45aa-a163-d1714b70536a@googlegroups.com> (permalink)
Subject Ignore missing data in the desired way
From u.gotzes@gmail.com

Show all headers | 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