Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > ed05dc5f357c49fdded780f52b150dce > files > 69

ploticus-2.41-2mdv2010.0.i586.rpm

<html>
<head>
<!-- This file has been generated by unroff 1.0, 03/11/09 12:56:18. -->
<!-- Do not edit! -->
<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.41 Mar2009
     </small><br><a href="../doc/prefabs.html">Prefabs</a>
  <td></tr></table>
</td></tr>
<td>
<br>
<br>

<title>Manual page for Examples_-_chron_prefab(PL)</title>
</head>
<body>

<p>
These examples all use
<a href="prefab_chron.html">
 the chron prefab.<tt> </tt>
</a>
All of these examples are included in the distribution (<tt>./pltestsuite/testpf_chron</tt>).<tt> </tt>
<a href="prefab_gallery.html">
 Gallery of ALL prefab examples
</a>

<br><br><br>

<h2>chron example 1 - dates</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron1.gif"></td></tr>
</table></center>
<p>
<pre>
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.


</pre>
<h2>chron example 2 - dates - tabulated by week</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron2.gif"></td></tr>
</table></center>
<p>
<pre>

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"

</pre>

<h2>chron example 3 - dates - tabulated by week</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron3.gif"></td></tr>
</table></center>
<p>
<pre>
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.

</pre>
In the above example, notice that <b>rectangle</b> (new in 2.02) was used to set a smaller
size, and a file containing script code for the annotation is included.<tt> </tt>

<br><br><br>


<h2>chron example 4 - dates - tabulated by month</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron4.gif"></td></tr>
</table></center>
<p>
<pre>


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 


</pre>

<h2>chron example 5 - datetimes - tabulated by hour</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron5.gif"></td></tr>
</table></center>
<p>
<pre>

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.

</pre>

<h2>chron example 6 - times - tabulated by hour</h2>
<p>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron6.gif"></td></tr>
</table></center>
<p>
<pre>
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.

</pre>

<h2>chron example 7 - hourly temperature readings plotted for one week</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron7.gif"></td></tr>
</table></center>
<p>
<pre>
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


</pre>

<h2>chron example 8 - multiple curves</h2>
<center><table cellpadding=2><tr>
<td><img src="../gallery/prefab_img/chron8.gif"></td></tr>
</table></center>
<p>
<pre>
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
</pre>
<p>
In version 2.20 the ability to render multiple curves or bar sets was introduced.<tt> </tt>
This can be done so long as tabulation is not being performed.<tt> </tt>



<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>
<table><tr><td>
Ploticus is hosted at http://ploticus.sourceforge.net</td><td> &nbsp; </td><td>
<a href="http://sourceforge.net/projects/ploticus"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=38453&type=12" 
width="120" height="30" border="0" 
alt="Get ploticus data display engine at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a>
</td></tr></table>


</center>
<p><hr>
Markup created by <em>unroff</em> 1.0,&#160;<tt> </tt>&#160;<tt> </tt>March 11, 2009.
</body>
</html>