| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | DEV=$1 |
| 4 | OUTDIR=$2 |
| 5 | ARGS= |
| 6 | if [scip-shell system . . `[`. "$DEV" = "" ]; then |
| 7 | DEV=x11 |
| 8 | fi |
| 9 | |
| 10 | ### chron1 example uses datematic defaults.. |
| 11 | echoscip-shell system . . echo. "chron1 (datematic).." |
| 12 | pl -prefab chron data=data14 x=1 y=2 datefmt=yy/mm/dd \ |
| 13 | yrange="0 25" barwidth=line color=red \ |
| 14 | title="# hits per day" omitweekends=yes \ |
| 15 | -$DEV -o ${OUTDIR}chron1.$DEV $ARGS |
| 16 | |
| 17 | |
| 18 | echoscip-shell system . . echo. chron2.. |
| 19 | pl -prefab chron data=data14 x=1 y=2 datefmt=yy/mm/dd xinc="1 month" \ |
| 20 | stubfmt=M xyears=yyyy color=green tab=week title="# hits per week" \ |
| 21 | -$DEV -o ${OUTDIR}chron2.$DEV $ARGS |
| 22 | |
| 23 | echoscip-shell system . . echo. chron3.. |
| 24 | pl -prefab chron data=data19 x=2 y=1 datefmt=mmddyy xinc="1 month" \ |
| 25 | stubfmt=M xyears=yyyy color=green tab=week barwidth=0.05 include2=annot \ |
| 26 | title="# website visitors per week" -scale 0.7 rectangle="1 1 4 2.5" ygrid=yes \ |
| 27 | mode=line step=yes fill=red \ |
| 28 | -$DEV -o ${OUTDIR}chron3.$DEV $ARGS |
| 29 | |
| 30 | echoscip-shell system . . echo. chron4.. |
| 31 | pl -prefab chron data=data14 x=1 y=2 datefmt=yy/mm/dd xinc="1 month" \ |
| 32 | stubfmt=M xyears=yyyy color=powderblue tab=month tabmode=first nearest=month\ |
| 33 | barwidth=0.2 curve=yes \ |
| 34 | -$DEV -o ${OUTDIR}chron4.$DEV $ARGS |
| 35 | |
| 36 | echoscip-shell system . . echo. chron5.. |
| 37 | pl -prefab chron data=data16 timefld=2 x=1 tab=hour datefmt=yy/mm/dd xinc="1 day" \ |
| 38 | barwidth=line stubfmt=MMMdd unittype=datetime timefld=2 title="# hits per hour" \ |
| 39 | -$DEV -o ${OUTDIR}chron5.$DEV $ARGS |
| 40 | |
| 41 | echoscip-shell system . . echo. chron6.. |
| 42 | pl -prefab chron data=data15 x=1 tab=hour unittype=time xinc="1 hour" nearest=hour \ |
| 43 | barwidth=0.2 stubfmt=HHA title="# events per hour" color=coral \ |
| 44 | -$DEV -o ${OUTDIR}chron6.$DEV $ARGS |
| 45 | |
| 46 | echoscip-shell system . . echo. "chron6b (datematic).." |
| 47 | pl -prefab chron data=data15 x=1 tab=hour unittype=time \ |
| 48 | barwidth=0.2 title="# events per hour" color=coral \ |
| 49 | -$DEV -o ${OUTDIR}chron6.$DEV $ARGS |
| 50 | |
| 51 | |
| 52 | echoscip-shell system . . echo. chron7.. |
| 53 | pl -prefab chron data=data22 header=yes x=1 y=2 datefmt=mm/dd/yyyy xinc="1 day" \ |
| 54 | mode=line unittype=datetime title="temperatures this week" \ |
| 55 | -$DEV -o ${OUTDIR}chron7.$DEV $ARGS |
| 56 | |
| 57 | echoscip-shell system . . echo. chron8 |
| 58 | pl -prefab chron data=data24 header=yes x=dt y=air_temp y2=soil_temp y3=water_temp ylbl=#usefname \ |
| 59 | mode=line unittype=datetime datefmt=mm/dd/yyyy xinc="1 day" legendfmt=singleline \ |
| 60 | -$DEV -o ${OUTDIR}chron8.$DEV $ARGS |
| 61 | |
| 62 | echoscip-shell system . . echo. chron8a |
| 63 | pl -prefab chron data=data24 header=yes x=dt y=air_temp y2=soil_temp y3=water_temp ylbl=#usefname \ |
| 64 | mode=bars stack=yes barwidth=0.1 unittype=datetime datefmt=mm/dd/yyyy xinc="1 day" legendfmt=singleline \ |
| 65 | -$DEV -o ${OUTDIR}chron8.$DEV $ARGS |
| 66 | |
| 67 | # chron9 added to test day-less date format fix Jan '03 |
| 68 | echoscip-shell system . . echo. chron9 |
| 69 | pl -prefab chron data=data27 datefmt=mm/yyyy x=1 y=2 \ |
| 70 | xinc="1 month" xstubfmt=Mmm ygrid=yes color=green \ |
| 71 | -$DEV -o ${OUTDIR}chron8.$DEV $ARGS |
| 72 |