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


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

Missing points in multi line plot not being omitted

Newsgroups comp.graphics.apps.gnuplot
Date 2018-03-07 10:33 -0800
Message-ID <e3db9e9a-e4f1-44e3-99e4-704d0d59380f@googlegroups.com> (permalink)
Subject Missing points in multi line plot not being omitted
From Marius Schamschula <mschamschula@gmail.com>

Show all headers | View raw


I'm trying to make a plot of wind speed and wind gusts. The data for wind gusts is not continuous. If I use datafile missing on the wind gust data by itself, things work as expectedly, but if I try to plot gusts along with wind speed, gusts data are shown for times where there is no data. The plot omits gusts data at the beginning and end, but in the middle line segments are drawn where they should not. For example

set datafile missing NaN
set grid
set time
set xdata time
set timefmt "%Y-%m-%d:%H:%M:%S"
unset timestamp
plot '-' u 1:2 t 'Wind' w lines lt rgb "blue", '-' u 1:3 t 'Gust' w lines
2018-03-07:12:53:00 12 18
2018-03-07:11:53:00 12 ?
2018-03-07:10:53:00 12 23
2018-03-07:09:53:00 20 28
2018-03-07:08:53:00 17 ?
2018-03-07:07:53:00 13 23
2018-03-07:06:53:00 15 28
2018-03-07:05:53:00 15 29
2018-03-07:04:53:00 17 26
2018-03-07:02:53:00 9 ?
2018-03-07:01:53:00 12 ?
2018-03-07:00:53:00 16 ?
2018-03-06:23:53:00 16 24
2018-03-06:22:53:00 16 29
2018-03-06:21:53:00 13 22
2018-03-06:20:53:00 15 22
2018-03-06:19:53:00 14 21
2018-03-06:18:53:00 13 20
2018-03-06:17:53:00 10 17
2018-03-06:16:53:00 10 ?
2018-03-06:15:53:00 7 ?
2018-03-06:14:53:00 12 ?
2018-03-06:13:53:00 12 ?
e
2018-03-07:12:53:00 12 18
2018-03-07:11:53:00 12 ?
2018-03-07:10:53:00 12 23
2018-03-07:09:53:00 20 28
2018-03-07:08:53:00 17 ?
2018-03-07:07:53:00 13 23
2018-03-07:06:53:00 15 28
2018-03-07:05:53:00 15 29
2018-03-07:04:53:00 17 26
2018-03-07:02:53:00 9 ?
2018-03-07:01:53:00 12 ?
2018-03-07:00:53:00 16 ?
2018-03-06:23:53:00 16 24
2018-03-06:22:53:00 16 29
2018-03-06:21:53:00 13 22
2018-03-06:20:53:00 15 22
2018-03-06:19:53:00 14 21
2018-03-06:18:53:00 13 20
2018-03-06:17:53:00 10 17
2018-03-06:16:53:00 10 ?
2018-03-06:15:53:00 7 ?
2018-03-06:14:53:00 12 ?
2018-03-06:13:53:00 12 ?
e

The data is normally read from a temporary file, with additional formatting applied. A full example is

http://wx.aamu.edu/Images/mkpng.php?cws+KHSV

This is generated real time, so sometimes there isn't any wind gust data, or there are gusts over the whole time period.

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


Thread

Missing points in multi line plot not being omitted Marius Schamschula <mschamschula@gmail.com> - 2018-03-07 10:33 -0800
  Re: Missing points in multi line plot not being omitted Jörg Buchholz <bookwood4new@freenet.de> - 2018-03-08 11:39 +0100
    Re: Missing points in multi line plot not being omitted Marius Schamschula <mschamschula@gmail.com> - 2018-03-08 06:35 -0800
      Re: Missing points in multi line plot not being omitted Chris Elvidge <chris@mshome.net> - 2018-03-08 16:24 +0000
      Re: Missing points in multi line plot not being omitted Jörg Buchholz <bookwood4new@freenet.de> - 2018-03-08 20:10 +0100
        Re: Missing points in multi line plot not being omitted Ethan Merritt <sfeam@users.sf.net> - 2018-03-08 19:54 +0000
        Re: Missing points in multi line plot not being omitted Chris Elvidge <chris@mshome.net> - 2018-03-08 20:40 +0000
  Re: Missing points in multi line plot not being omitted Marius Schamschula <mschamschula@gmail.com> - 2018-03-09 10:48 -0800
    Re: Missing points in multi line plot not being omitted Jörg Buchholz <bookwood4new@freenet.de> - 2018-03-09 21:09 +0100
      Re: Missing points in multi line plot not being omitted Ethan A Merritt <EAMerritt@gmail.com> - 2018-03-09 23:18 -0800
        Re: Missing points in multi line plot not being omitted Jörg Buchholz <bookwood4new@freenet.de> - 2018-03-10 10:57 +0100
          Re: Missing points in multi line plot not being omitted Chris Elvidge <chris@mshome.net> - 2018-03-10 11:09 +0000
            Re: Missing points in multi line plot not being omitted Jörg Buchholz <bookwood4new@freenet.de> - 2018-03-10 17:40 +0100
              Re: Missing points in multi line plot not being omitted Chris Elvidge <chris@mshome.net> - 2018-03-10 17:01 +0000
                Re: Missing points in multi line plot not being omitted Jörg Buchholz <bookwood4new@freenet.de> - 2018-03-11 09:47 +0100
                Re: Missing points in multi line plot not being omitted Chris Elvidge <chris@mshome.net> - 2018-03-11 10:41 +0000

csiph-web