~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/plots/sieve_plot.php

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-05-11 21:58:23 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090511215823-m2f3gehcvapwrzgp
Tags: 0.5.0d-0ubuntu1
* New upstream release (LP: #375213)
* Bump Standards-Version to 3.8.1
* Drop cmake, libphon-dev from build-deps
* Update maintainer field

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?
 
2
function preprocess () { ?>
 
3
require(vcd)
 
4
<? }
 
5
 
 
6
function calculate () {
 
7
}
 
8
 
 
9
function printout () {
 
10
        doPrintout (true);
 
11
}
 
12
 
 
13
function preview () {
 
14
        preprocess ();
 
15
        calculate ();
 
16
        doPrintout (false);
 
17
}
 
18
 
 
19
function doPrintout ($final) {
 
20
        $vars = getRK_val ("x");
 
21
        $shade = getRK_val ("shade");
 
22
        $sievetype = getRK_val ("sievetype");
 
23
{ ?>
 
24
x <- <? echo ($vars); ?>
 
25
<? } ?>
 
26
 
 
27
<?      if ($final) { ?>
 
28
rk.header ("Extended Sieve Plot", parameters=list ("Variable", rk.get.description (<? echo ($vars); ?>), "shade", <? echo ($shade); ?>))
 
29
 
 
30
rk.graph.on ()
 
31
<?      }
 
32
?>
 
33
try ({
 
34
<?      if (!empty ($plotpre)) printIndented ("\t", $plotpre);
 
35
        
 
36
?>
 
37
        sieve(x, shade = <? echo ($shade); ?>, sievetype = "<? echo ($sievetype); ?>" <? getRK ("plotoptions.code.printout"); ?>)
 
38
<?      if (!empty ($plotpost)) printIndented ("\t", $plotpost); ?>
 
39
})
 
40
<?      if ($final) { ?>
 
41
rk.graph.off ()
 
42
<? }
 
43
}
 
44
?>