<!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>Splot</TITLE> <META NAME="description" CONTENT="Splot"> <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="node343.html"> <LINK REL="previous" HREF="node334.html"> <LINK REL="up" HREF="node88.html"> <LINK REL="next" HREF="node336.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html5994" HREF="node336.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5988" HREF="node88.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5982" HREF="node334.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5990" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5992" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5995" HREF="node336.html">Data-file</A> <B> Up:</B> <A NAME="tex2html5989" HREF="node88.html">Commands</A> <B> Previous:</B> <A NAME="tex2html5983" HREF="node334.html">Shell</A> <B> <A NAME="tex2html5991" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5993" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION040260000000000000000"></A> <A NAME="commands_splot"></A><A NAME="splot"></A><A NAME="7606"></A> <BR> Splot </H1> <B>splot</B> is the command for drawing 3D plots (well, actually projections on a 2D surface, but you knew that). It can create a plot from functions or data read from files in a manner very similar to the <B>plot</B> command. <B>splot</B> provides only a single x, y, and z axis; there is no equivalent to the x2 and y2 secondary axes provided by <B>plot</B>. <P> See <B>plot (p. <A HREF="node113.html#plot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7612"></A></B> for features common to the <B>plot (p. <A HREF="node113.html#plot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7614"></A></B> command; only differences are discussed in detail here. <P> Syntax: <BR> <PRE> splot {<ranges>} {<iteration>} <function> | "<datafile>" {datafile-modifiers}} {<title-spec>} {with <style>} {, {definitions{,}} <function> ...} </PRE> <BR> <P> where either a 4#4function5#5 or the name of a data file enclosed in quotes is supplied. The function can be a mathematical expression, or a triple of mathematical expressions in parametric mode. <P> By default <B>splot</B> draws the xy plane completely below the plotted data. The offset between the lowest ztic and the xy plane can be changed by <B>set xyplane</B>. The orientation of a <B>splot</B> projection is controlled by <B>set view</B>. See <B>set view (p. <A HREF="node285.html#set_view"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7622"></A></B> and <B>set xyplane (p. <A HREF="node303.html#set_xyplane"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7624"></A></B> for more information. <P> The syntax for setting ranges on the <B>splot</B> command is the same as for <B>plot</B>. In non-parametric mode, the order in which ranges must be given is <B>xrange</B>, <B>yrange</B>, and <B>zrange</B>. In parametric mode, the order is <B>urange</B>, <B>vrange</B>, <B>xrange</B>, <B>yrange</B>, and <B>zrange</B>. <P> The <B>title</B> option is the same as in <B>plot</B>. The operation of <B>with</B> is also the same as in <B>plot</B>, except that the plotting styles available to <B>splot</B> are limited to <B>lines</B>, <B>points</B>, <B>linespoints</B>, <B>dots</B>, and <B>impulses</B>; the error-bar capabilities of <B>plot</B> are not available for <B>splot</B>. <P> The <B>datafile</B> options have more differences. <P> See also <B>show plot (p. <A HREF="node244.html#show_plot"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7649"></A></B>. <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html5996" HREF="node336.html">Data-file</A> <UL> <LI><A NAME="tex2html5997" HREF="node337.html">Binary matrix</A> <LI><A NAME="tex2html5998" HREF="node338.html">Example datafile</A> <LI><A NAME="tex2html5999" HREF="node339.html">Matrix_ascii</A> <LI><A NAME="tex2html6000" HREF="node340.html">Matrix</A> </UL> <BR> <LI><A NAME="tex2html6001" HREF="node341.html">Grid data</A> <LI><A NAME="tex2html6002" HREF="node342.html">Splot overview</A> </UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html5994" HREF="node336.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5988" HREF="node88.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5982" HREF="node334.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5990" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5992" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5995" HREF="node336.html">Data-file</A> <B> Up:</B> <A NAME="tex2html5989" HREF="node88.html">Commands</A> <B> Previous:</B> <A NAME="tex2html5983" HREF="node334.html">Shell</A> <B> <A NAME="tex2html5991" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5993" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>