~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/x11device/grid.php

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2008-04-20 21:30:00 UTC
  • mfrom: (1.2.2 upstream) (3.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080420213000-fs4i8efmfc793bnn
new upstream release
closes: #475175
closes: #463348
closes: #475982

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
function preprocess () {
 
3
        if (getRK_val ("is_embed")) { ?>
 
4
dev.set (<? getRK ("devnum"); ?>)
 
5
<?      }
 
6
}
 
7
 
 
8
function calculate () {
 
9
}
 
10
 
 
11
function printout () {
 
12
        $nx = getRK_val ("nx");
 
13
        if ($nx == "other") $gridoptions = 'nx=' . getRK_val ("nx_cells");
 
14
        else $gridoptions = 'nx=' . $nx;
 
15
 
 
16
        $ny = getRK_val ("ny");
 
17
        if ($ny == "other") $gridoptions .= ', ny=' . getRK_val ("ny_cells");
 
18
        else $gridoptions .= ', ny=' . $ny;
 
19
 
 
20
        $gridoptions .= getRK_val ("col.code.printout");
 
21
 
 
22
        if (getRK_val("custlwd")) $gridoptions .= ', lwd=' . round(getRK_val ("lwd"),1);
 
23
 
 
24
        $lty = getRK_val("linetype");
 
25
        if ($lty != "") $gridoptions .= ", lty=\"{$lty}\"";
 
26
 
 
27
        if (!getRK_val("equilogs")) $gridoptions .= ', equilogs=FALSE';
 
28
?>
 
29
grid(<? echo ($gridoptions); ?>);
 
30
<?
 
31
}
 
32
?>
 
 
b'\\ No newline at end of file'