| 1 |
//// this chunk is included by prefabs to set up the plotting area |
| 2 |
// |
| 3 |
//// set default grid |
| 4 |
#if @xgrid = yes |
| 5 |
#set xgrid = "color=tan1" |
| 6 |
#endif |
| 7 |
#if @ygrid = yes |
| 8 |
#set ygrid = "color=tan1" |
| 9 |
#endif |
| 10 |
// |
| 11 |
//// set up plotting area.. |
| 12 |
#proc areadef |
| 13 |
rectangle: @rectangle |
| 14 |
#if @context = chron && @unittype = date |
| 15 |
// this is done so that partial date formats eg. mm/yyyy are handled correctly by 2.20.. |
| 16 |
xscaletype: date @datefmt |
| 17 |
#else |
| 18 |
#ifspec unittype xscaletype |
| 19 |
#endif |
| 20 |
#ifspec ylog yscaletype |
| 21 |
#ifspec xlog xscaletype |
| 22 |
#if @autow = yes |
| 23 |
autowidth: 0.5 4.0 8.0 |
| 24 |
#endif |
| 25 |
|