<!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>Coordinates</TITLE> <META NAME="description" CONTENT="Coordinates"> <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="node19.html"> <LINK REL="previous" HREF="node17.html"> <LINK REL="up" HREF="node2.html"> <LINK REL="next" HREF="node19.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html990" HREF="node19.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html984" HREF="node2.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html978" HREF="node17.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html986" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html988" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html991" HREF="node19.html">Datastrings</A> <B> Up:</B> <A NAME="tex2html985" HREF="node2.html">Gnuplot</A> <B> Previous:</B> <A NAME="tex2html979" HREF="node17.html">Comments</A> <B> <A NAME="tex2html987" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html989" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION02090000000000000000"></A> <A NAME="coordinates"></A><A NAME="310"></A> <A NAME="311"></A> <BR> Coordinates </H1> The commands <B>set arrow</B>, <B>set key</B>, <B>set label</B> and <B>set object</B> allow you to draw something at an arbitrary position on the graph. This position is specified by the syntax: <P> <BR> <PRE> {<system>} <x>, {<system>} <y> {,{<system>} <z>} </PRE> <BR> <P> Each 4#4system5#5 can either be <B>first</B>, <B>second</B>, <B>graph</B>, <B>screen</B>, or <B>character</B>. <P> <B>first</B> places the x, y, or z coordinate in the system defined by the left and bottom axes; <B>second</B> places it in the system defined by the second axes (top and right); <B>graph</B> specifies the area within the axes -- 0,0 is bottom left and 1,1 is top right (for splot, 0,0,0 is bottom left of plotting area; use negative z to get to the base -- see <B>set xyplane (p. <A HREF="node303.html#set_xyplane"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="327"></A></B>); <B>screen</B> specifies the screen area (the entire area -- not just the portion selected by <B>set size</B>), with 0,0 at bottom left and 1,1 at top right; and <B>character</B> gives the position in character widths and heights from the bottom left of the screen area (screen 0,0), <B>character</B> coordinates depend on the chosen font size. <P> If the coordinate system for x is not specified, <B>first</B> is used. If the system for y is not specified, the one used for x is adopted. <P> In some cases, the given coordinate is not an absolute position but a relative value (e.g., the second position in <B>set arrow</B> ... <B>rto</B>). In most cases, the given value serves as difference to the first position. If the given coordinate resides in a logarithmic axis the value is interpreted as factor. For example, <P> <BR> <PRE> set logscale x set arrow 100,5 rto 10,2 </PRE> <BR> <P> plots an arrow from position 100,5 to position 1000,7 since the x axis is logarithmic while the y axis is linear. <P> If one (or more) axis is timeseries, the appropriate coordinate should be given as a quoted time string according to the <B>timefmt</B> format string. See <B>set xdata (p. <A HREF="node295.html#set_xdata"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="339"></A></B> and <B>set timefmt (p. <A HREF="node278.html#set_timefmt"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="341"></A></B>. <B>Gnuplot</B> will also accept an integer expression, which will be interpreted as seconds from 1 January 2000. <HR> <!--Navigation Panel--> <A NAME="tex2html990" HREF="node19.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html984" HREF="node2.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html978" HREF="node17.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html986" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html988" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html991" HREF="node19.html">Datastrings</A> <B> Up:</B> <A NAME="tex2html985" HREF="node2.html">Gnuplot</A> <B> Previous:</B> <A NAME="tex2html979" HREF="node17.html">Comments</A> <B> <A NAME="tex2html987" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html989" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>