]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - samples/synopsis.pl
Bump the default space width of patterns to 10
[perl/modules/LaTeX-TikZ.git] / samples / synopsis.pl
index 892e8bb0966b92a3ca0fb853d78298613023cec9..41c22956b770488b2b357319e8d021936493c97f 100644 (file)
@@ -9,7 +9,7 @@ use LaTeX::TikZ;
 
 # A couple of lines
 my $hline = Tikz->line(-1 => 1);
-my $vline = Tikz->line([ 0, -1 ] => [ 0, -1 ]);
+my $vline = Tikz->line([ 0, -1 ] => [ 0, 1 ]);
 
 # Paint them in red
 $_->mod(Tikz->color('red')) for $hline, $vline;
@@ -27,7 +27,7 @@ $octo->clip(Tikz->rectangle(-0.5*(1+i), 2*(1+i)));
 $octo->mod(Tikz->pattern(class => 'Dots'));
 
 # Create a formatter object
-my $tikz = Tikz->formatter;
+my $tikz = Tikz->formatter(scale => 5);
 
 # Put those objects all together and print them
 my $seq = Tikz->seq($octo, $hline, $vline);