.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: examples - chron prefab</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>Examples - chron prefab</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.33 Jun'06
     </small><br><a href="../doc/prefabs.html">Prefabs</a>
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH Examples_-_chron_prefab PL "02-JUN-2006   PL ploticus.sourceforge.net"

.LP
These examples all use
.ig >>
<a href="prefab_chron.html">
.>>
\0the chron prefab.
.ig >>
</a>
.>>
All of these examples are included in the distribution (\fC./pltestsuite/testpf_chron\fR).
.ig >>
<a href="prefab_gallery.html">
.>>
\0Gallery of ALL prefab examples
.ig >>
</a>
.>>

.ig >>
<br><br><br>
.>>

.SH chron example 1 - dates 
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron1.gif"></td></tr>
</table></center>
.>>
.LP
.nf
pl  -prefab chron  data=data14  x=1  y=2  datefmt=yy/mm/dd  xinc="1 month" \\
     stubfmt=M  xyears=yyyy  yrange="0 25"  barwidth=line  color=red  \\
     title="# hits per day"  omitweekends=yes


The data14 file:
	00/12/21 1
	00/12/22 1
	00/12/23 2
	00/12/27 1
        ...etc.


.fi
.SH chron example 2 - dates - tabulated by week
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron2.gif"></td></tr>
</table></center>
.>>
.LP
.nf

pl  -prefab chron  data=data14  x=1  y=2  datefmt=yy/mm/dd  xinc="1 month" \\
      stubfmt=M  xyears=yyyy  color=green  tab=week  title="# hits per week"

.fi

.SH chron example 3 - dates - tabulated by week
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron3.gif"></td></tr>
</table></center>
.>>
.LP
.nf
pl  -prefab chron  data=data19  x=2  y=1  datefmt=mmddyy  xinc="1 month" \\
	stubfmt=M  xyears=yyyy  color=green  tab=week  include2=annot \\
	title="# website visitors per week"  rectangle="1 1 4 2.5"  ygrid=yes  \\
	mode=line step=yes fill=red 

The data19 file:
  18 071301
  16 071401
  15 071501
  34 071601
  ...etc.

.fi
In the above example, notice that \fBrectangle\fR (new in 2.02) was used to set a smaller
size, and a file containing script code for the annotation is included.

.ig >>
<br><br><br>
.>>


.SH chron example 4 - dates - tabulated by month
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron4.gif"></td></tr>
</table></center>
.>>
.LP
.nf


pl  -prefab chron  data=data14  x=1  y=2  datefmt=yy/mm/dd  xinc="1 month"  \\
	stubfmt=M  xyears=yyyy  color=powderblue  tab=month  tabmode=first  \\
	nearest=month  barwidth=0.2  curve=yes 


.fi

.SH chron example 5 - datetimes - tabulated by hour
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron5.gif"></td></tr>
</table></center>
.>>
.LP
.nf

pl -prefab chron  data=data16  x=1  tab=hour  datefmt=yy/mm/dd  xinc="1 day" \\
	barwidth=line  stubfmt=MMMdd  unittype=datetime  timefld=2  \\
	title="# hits per hour"


The data16 file:
	01/09/05	09:43:35
	01/09/05	09:43:40
	01/09/05	13:15:00
	01/09/05	13:15:11
	...etc.

Note that a file such as this (data13) could also be used, and timefld
would not need to specified:
	01/09/05.09:43:35
	01/09/05.09:43:40
	01/09/05.13:15:00
	01/09/05.13:15:11
	..etc.

.fi

.SH chron example 6 - times - tabulated by hour
.LP
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron6.gif"></td></tr>
</table></center>
.>>
.LP
.nf
pl -prefab chron  data=data15  x=1  tab=hour unittype=time xinc="1 hour" \\
	nearest=hour  barwidth=0.2  stubfmt=HHA  \\
	title="# events per hour"  color=coral


The data15 file:
	07:47:49
	07:47:52
	07:47:54
	..etc.

.fi

.SH chron example 7 - hourly temperature readings plotted for one week
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron7.gif"></td></tr>
</table></center>
.>>
.LP
.nf
pl -prefab chron data=data22 header=yes x=1 y=2 datefmt=mm/dd/yyyy  \\
  xinc="1 day" mode=line unittype=datetime title="temperatures this week"

The data22 file has data for one week and begins like this:
datetime temp
12/08/2002.00:00 22
12/08/2002.06:00 24
12/08/2002.12:00 31
12/10/2002.00:00 30


.fi

.SH chron example 8 - multiple curves
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron8.gif"></td></tr>
</table></center>
.>>
.LP
.nf
pl -prefab chron data=data24 header=yes unittype=datetime mode=line\\
  datefmt=mm/dd/yyyy x=dt y=airtemp y2=soiltemp y3=watertemp \\
  xinc="1 day" legendfmt=singleline

The data24 file looks like this:
dt airtemp soiltemp watertemp
12/08/2002.06:00 24 27 16
12/09/2002.00:00 25 27 16
12/10/2002.00:00 30 27 15
12/11/2002.00:00 32 32 15
12/12/2002.00:00 40 37 16
12/13/2002.00:00 19 27 15
12/14/2002.00:00 14 18 13
.fi
.LP
In version 2.20 the ability to render multiple curves or bar sets was introduced.
This can be done so long as tabulation is not being performed.



.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>
