Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 591c941c2fdf0a32dc57bb5f10791cde > files > 302

gnuplot-doc-4.4.0-5.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Set datafile missing</TITLE>
<META NAME="description" CONTENT="Set datafile missing">
<META NAME="keywords" CONTENT="gnuplot">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="gnuplot.css">

<LINK REL="next" HREF="node197.html">
<LINK REL="previous" HREF="node195.html">
<LINK REL="up" HREF="node193.html">
<LINK REL="next" HREF="node197.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html4043"
  HREF="node197.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4037"
  HREF="node193.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4031"
  HREF="node195.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4039"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4041"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4044"
  HREF="node197.html">Set datafile separator</A>
<B> Up:</B> <A NAME="tex2html4038"
  HREF="node193.html">Datafile</A>
<B> Previous:</B> <A NAME="tex2html4032"
  HREF="node195.html">Set datafile nofpe_trap</A>
 &nbsp; <B>  <A NAME="tex2html4040"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4042"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H3><A NAME="SECTION0402416300000000000000"></A>
<A NAME="set_datafile_missing"></A><A NAME="show_datafile_missing"></A><A NAME="set_missing"></A><A NAME="missing"></A><A NAME="4379"></A>
<BR>
Set datafile missing
</H3>
The <B>set datafile missing</B> command allows you to tell <B>gnuplot</B> what character
string is used in a data file to denote missing data.  Exactly how this missing
value will be treated depends on the <B>using</B> specifier of the <B>plot</B> or <B>splot</B>
command.

<P>
Syntax:
<BR>
<PRE>
     set datafile missing {"&lt;string&gt;"}
     show datafile missing
     unset datafile
</PRE>
<BR>

<P>
Example:
<BR>
<PRE>
     # Ignore entries containing IEEE NaN ("Not a Number") code
     set datafile missing "NaN"
</PRE>
<BR>

<P>
Example:
<BR>
<PRE>
     set style data linespoints
     plot '-'
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     set datafile missing "?"
     plot '-'
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     plot '-' using 1:2
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     plot '-' using 1:($2)
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
</PRE>
<BR>

<P>
The first <B>plot</B> will recognize only the first datum in the <TT>"</TT>3 ?<TT>"</TT> line.  It
will use the single-datum-on-a-line convention that the line number is <TT>"</TT>x<TT>"</TT>
and the datum is <TT>"</TT>y<TT>"</TT>, so the point will be plotted (in this case erroneously)
at (2,3).

<P>
The second and third <B>plot</B> commands will correctly ignore the middle line.
The plotted line will connect the points at (2,20) and (4,40).

<P>
The fourth <B>plot</B> will also correctly ignore the middle line, but the plotted
line will not connect the points at (2,20) and (4,40).

<P>
There is no default character for <B>missing</B>, but in many cases any
non-parsible string of characters found where a numerical value is expected
will be treated as missing data.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html4043"
  HREF="node197.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4037"
  HREF="node193.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4031"
  HREF="node195.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4039"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4041"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4044"
  HREF="node197.html">Set datafile separator</A>
<B> Up:</B> <A NAME="tex2html4038"
  HREF="node193.html">Datafile</A>
<B> Previous:</B> <A NAME="tex2html4032"
  HREF="node195.html">Set datafile nofpe_trap</A>
 &nbsp; <B>  <A NAME="tex2html4040"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4042"
  HREF="node467.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2010-08-17
</ADDRESS>
</BODY>
</HTML>