" 30 30 moveto (${page_x}x${page_y}) show\n"
or die $!;
}
-
+
print
" -$ps_page_xmul $page_x mul -$ps_page_ymul $page_y mul translate\n".
" $ptscale $ptscale scale\n"
cmd__one();
}
-oflushpage();
-
{
my ($min_x, $max_x, $min_y, $max_y) = bbox($ctx->{Loc});
my ($bboxstr);
if (!$quiet) { print STDERR $bboxstr; }
$bboxstr =~ s/^/\%L bbox /mg;
print $bboxstr or die $!;
+
+ if ($scale < 1.5) {
+ my ($tick_x, $tick_y, $ticklen);
+ $ticklen= 10;
+ printf(" gsave 0.5 setgray 1 setlinewidth\n".
+ " /regmark {\n".
+ " newpath moveto\n".
+ " -%d 0 rmoveto %d 0 rlineto\n".
+ " -%d -%d rmoveto 0 %d rlineto stroke\n".
+ " } def\n",
+ $ticklen, $ticklen*2, $ticklen, $ticklen, $ticklen*2)
+ or die $!;
+ for ($tick_x= $min_x; $tick_x < $max_x; $tick_x += 150) {
+ for ($tick_y= $min_y; $tick_y < $max_y; $tick_y += 150) {
+ printf(" %f %f regmark\n",
+ $tick_x, $tick_y)
+ or die $!;
+ }
+ }
+ printf(" grestore\n")
+ or die $!;
+ }
}
+
+oflushpage();
./layout <$< $(LAYOUTOPTS_ALL) $o
clean:
- -rm -f -- *.d4 *.ps farn.* *~
+ -rm -f -- *.d4 *.ps farn.* *~ *.new
-rm -f bulkres-*.partlist bulkres-items.suggest *.bom
+ -rm -f t,*.gnuplot-data t,*.gnuplot-cmd t,gnuplot-fifo
+ -rm -f t,gnuplots.sh
./layout <$< $(LAYOUTOPTS_ALL) $o
clean:
- -rm -f -- *.d4 *.ps farn.* *~
+ -rm -f -- *.d4 *.ps farn.* *~ *.new
-rm -f bulkres-*.partlist bulkres-items.suggest *.bom
+ -rm -f t,*.gnuplot-data t,*.gnuplot-cmd t,gnuplot-fifo
+ -rm -f t,gnuplots.sh
./layout <$< $(LAYOUTOPTS_ALL) $o
clean:
- -rm -f -- *.d4 *.ps farn.* *~
+ -rm -f -- *.d4 *.ps farn.* *~ *.new
-rm -f bulkres-*.partlist bulkres-items.suggest *.bom
+ -rm -f t,*.gnuplot-data t,*.gnuplot-cmd t,gnuplot-fifo
+ -rm -f t,gnuplots.sh