<!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>Smooth</TITLE> <META NAME="description" CONTENT="Smooth"> <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="node149.html"> <LINK REL="previous" HREF="node139.html"> <LINK REL="up" HREF="node115.html"> <LINK REL="next" HREF="node141.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html3088" HREF="node141.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3082" HREF="node115.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3076" HREF="node139.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3084" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3086" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3089" HREF="node141.html">Acsplines</A> <B> Up:</B> <A NAME="tex2html3083" HREF="node115.html">Data</A> <B> Previous:</B> <A NAME="tex2html3077" HREF="node139.html">Index</A> <B> <A NAME="tex2html3085" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3087" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H3><A NAME="SECTION040142600000000000000"></A> <A NAME="commands_plot_datafile_smooth"></A><A NAME="plot_datafile_smooth"></A><A NAME="plot_smooth"></A><A NAME="data-file_smooth"></A><A NAME="datafile_smooth"></A><A NAME="smooth"></A><A NAME="2946"></A> <BR> Smooth </H3> <B>gnuplot</B> includes a few general-purpose routines for interpolation and approximation of data; these are grouped under the <B>smooth</B> option. More sophisticated data processing may be performed by preprocessing the data externally or by using <B>fit</B> with an appropriate model. <P> Syntax: <BR> <PRE> smooth {unique | frequency | cumulative | kdensity | csplines | acsplines | bezier | sbezier} </PRE> <BR> <P> <B>unique</B>, <B>frequency</B>, and <B>cumulative</B> plot the data after making them monotonic. Each of the other routines uses the data to determine the coefficients of a continuous curve between the endpoints of the data. This curve is then plotted in the same manner as a function, that is, by finding its value at uniform intervals along the abscissa (see <B>set samples (p. <A HREF="node259.html#set_samples"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="2956"></A></B>) and connecting these points with straight line segments (if a line style is chosen). <P> If <B>autoscale</B> is in effect, the ranges will be computed such that the plotted curve lies within the borders of the graph. <P> If <B>autoscale</B> is not in effect, and the smooth option is either <B>acspline</B> or <B>cspline</B>, the sampling of the generated curve is done across the intersection of the x range covered by the input data and the fixed abscissa range as defined by <B>set xrange</B>. <P> If too few points are available to allow the selected option to be applied, an error message is produced. The minimum number is one for <B>unique</B> and <B>frequency</B>, four for <B>acsplines</B>, and three for the others. <P> The <B>smooth</B> options have no effect on function plots. <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html3090" HREF="node141.html">Acsplines</A> <LI><A NAME="tex2html3091" HREF="node142.html">Bezier</A> <LI><A NAME="tex2html3092" HREF="node143.html">Csplines</A> <LI><A NAME="tex2html3093" HREF="node144.html">Sbezier</A> <LI><A NAME="tex2html3094" HREF="node145.html">Unique</A> <LI><A NAME="tex2html3095" HREF="node146.html">Frequency</A> <LI><A NAME="tex2html3096" HREF="node147.html">Cumulative</A> <LI><A NAME="tex2html3097" HREF="node148.html">Kdensity</A> </UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html3088" HREF="node141.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3082" HREF="node115.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3076" HREF="node139.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3084" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3086" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3089" HREF="node141.html">Acsplines</A> <B> Up:</B> <A NAME="tex2html3083" HREF="node115.html">Data</A> <B> Previous:</B> <A NAME="tex2html3077" HREF="node139.html">Index</A> <B> <A NAME="tex2html3085" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3087" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>