]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - samples/synopsis.pl
Fix synopsis
[perl/modules/LaTeX-TikZ.git] / samples / synopsis.pl
index 892e8bb0966b92a3ca0fb853d78298613023cec9..c5ab5fd2d7b686c07dea11bd5181c55abc51a846 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;
@@ -24,10 +24,10 @@ my $octo = Tikz->closed_polyline(
 $octo->clip(Tikz->rectangle(-0.5*(1+i), 2*(1+i)));
 
 # Fill it with dots
-$octo->mod(Tikz->pattern(class => 'Dots'));
+$octo->mod(Tikz->pattern(class => 'Dots', space_width => 10));
 
 # 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);