<!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>Xdata</TITLE> <META NAME="description" CONTENT="Xdata"> <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="node296.html"> <LINK REL="previous" HREF="node294.html"> <LINK REL="up" HREF="node175.html"> <LINK REL="next" HREF="node296.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html5436" HREF="node296.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5430" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5424" HREF="node294.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5432" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5434" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5437" HREF="node296.html">Xdtics</A> <B> Up:</B> <A NAME="tex2html5431" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html5425" HREF="node294.html">X2zeroaxis</A> <B> <A NAME="tex2html5433" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5435" HREF="node467.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION0402486000000000000000"></A> <A NAME="commands_set_xdata"></A><A NAME="commands_show_xdata"></A><A NAME="set_xdata"></A><A NAME="show_xdata"></A><A NAME="xdata"></A><A NAME="6881"></A> <BR> Xdata </H2> This command sets the datatype on the x axis to time/date. A similar command does the same thing for each of the other axes. <P> Syntax: <BR> <PRE> set xdata {time} show xdata </PRE> <BR> <P> The same syntax applies to <B>ydata</B>, <B>zdata</B>, <B>x2data</B>, <B>y2data</B> and <B>cbdata</B>. <P> The <B>time</B> option signals that the datatype is indeed time/date. If the option is not specified, the datatype reverts to normal. <P> See <B>set timefmt (p. <A HREF="node278.html#set_timefmt"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6891"></A></B> to tell gnuplot how to read date or time data. The time/date is converted to seconds from start of the century. There is currently only one timefmt, which implies that all the time/date columns must conform to this format. Specification of ranges should be supplied as quoted strings according to this format to avoid interpretation of the time/date as an expression. <P> The function 'strftime' (type <TT>"</TT>man strftime<TT>"</TT> on unix to look it up) is used to print tic-mark labels. <B>gnuplot</B> tries to figure out a reasonable format for this unless the <B>set format x <TT>"</TT>string<TT>"</TT></B> has supplied something that does not look like a decimal format (more than one '%' or neither %f nor %g). <P> See also <B>Time/date (p. <A HREF="node54.html#Time_date"><IMG ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="6898"></A></B> for more information. <HR> <!--Navigation Panel--> <A NAME="tex2html5436" HREF="node296.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5430" HREF="node175.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5424" HREF="node294.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5432" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5434" HREF="node467.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5437" HREF="node296.html">Xdtics</A> <B> Up:</B> <A NAME="tex2html5431" HREF="node175.html">Set-show</A> <B> Previous:</B> <A NAME="tex2html5425" HREF="node294.html">X2zeroaxis</A> <B> <A NAME="tex2html5433" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5435" HREF="node467.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2010-08-17 </ADDRESS> </BODY> </HTML>