Sophie

Sophie

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

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>Grid</TITLE>
<META NAME="description" CONTENT="Grid">
<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="node213.html">
<LINK REL="previous" HREF="node211.html">
<LINK REL="up" HREF="node175.html">
<LINK REL="next" HREF="node213.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html4266"
  HREF="node213.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4260"
  HREF="node175.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4254"
  HREF="node211.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4262"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4264"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4267"
  HREF="node213.html">Hidden3d</A>
<B> Up:</B> <A NAME="tex2html4261"
  HREF="node175.html">Set-show</A>
<B> Previous:</B> <A NAME="tex2html4255"
  HREF="node211.html">Functions</A>
 &nbsp; <B>  <A NAME="tex2html4263"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4265"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION0402426000000000000000"></A>
<A NAME="commands_set_grid"></A><A NAME="commands_unset_grid"></A><A NAME="commands_show_grid"></A><A NAME="set_grid"></A><A NAME="unset_grid"></A><A NAME="show_grid"></A><A NAME="grid"></A><A NAME="4775"></A>
<A NAME="nogrid"></A><A NAME="4777"></A>
<BR>
Grid
</H2>
The <B>set grid</B> command allows grid lines to be drawn on the plot.

<P>
Syntax:
<BR>
<PRE>
     set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics}
              {{no}{m}x2tics} {{no}{m}y2tics}
              {{no}{m}cbtics}
              {polar {&lt;angle&gt;}}
              {layerdefault | front | back}
              { {linestyle &lt;major_linestyle&gt;}
                | {linetype | lt &lt;major_linetype&gt;}
                  {linewidth | lw &lt;major_linewidth&gt;}
                { , {linestyle | ls &lt;minor_linestyle&gt;}
                    | {linetype | lt &lt;minor_linetype&gt;}
                      {linewidth | lw &lt;minor_linewidth&gt;} } }
     unset grid
     show grid
</PRE>
<BR>

<P>
The grid can be enabled and disabled for the major and/or minor tic
marks on any axis, and the linetype and linewidth can be specified
for major and minor grid lines, also via a predefined linestyle, as
far as the active terminal driver supports this.

<P>
Additionally, a polar grid can be selected for 2D plots -- circles are drawn
to intersect the selected tics, and radial lines are drawn at definable
intervals.  (The interval is given in degrees or radians, depending on the
<B>set angles</B> setting.)  Note that a polar grid is no longer automatically
generated in polar mode.

<P>
The pertinent tics must be enabled before <B>set grid</B> can draw them; <B>gnuplot</B>
will quietly ignore instructions to draw grid lines at non-existent tics, but
they will appear if the tics are subsequently enabled.

<P>
If no linetype is specified for the minor gridlines, the same linetype as the
major gridlines is used.  The default polar angle is 30 degrees.

<P>
If <B>front</B> is given, the grid is drawn on top of the graphed data. If
<B>back</B> is given, the grid is drawn underneath the graphed data. Using
<B>front</B> will prevent the grid from being obscured by dense data. The
default setup, <B>layerdefault</B>, is equivalent to <B>back</B> for 2d plots.
In 3D plots the default is to split up the grid and the graph box into
two layers: one behind, the other in front of the plotted data and
functions. Since <B>hidden3d</B> mode does its own sorting, it ignores
all grid drawing order options and passes the grid lines through the
hidden line removal machinery instead. These options actually affect
not only the grid, but also the lines output by <B>set border</B> and the
various ticmarks (see <B>set xtics (p.&nbsp;<A HREF="node300.html#set_xtics"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="4792"></A></B>).

<P>
Z grid lines are drawn on the bottom of the plot.  This looks better if a
partial box is drawn around the plot -- see <B>set border (p.&nbsp;<A HREF="node184.html#set_border"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="4794"></A></B>.
<HR>
<!--Navigation Panel-->
<A NAME="tex2html4266"
  HREF="node213.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4260"
  HREF="node175.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4254"
  HREF="node211.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4262"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4264"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4267"
  HREF="node213.html">Hidden3d</A>
<B> Up:</B> <A NAME="tex2html4261"
  HREF="node175.html">Set-show</A>
<B> Previous:</B> <A NAME="tex2html4255"
  HREF="node211.html">Functions</A>
 &nbsp; <B>  <A NAME="tex2html4263"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4265"
  HREF="node467.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

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