Subject: | Patch to add support for 'orientation' |
Please find here a patch to allow setting of orientation (e.g. to
'landscape'):
--- GraphViz.pm.orig 2011-10-19 22:05:01.000000000 +0200
+++ GraphViz.pm 2011-10-19 22:06:04.000000000 +0200
@@ -386,6 +386,9 @@
$self->{CONCENTRATE} = $config->{concentrate}
if ( exists $config->{concentrate} );
+ $self->{ORIENTATION} = $config->{orientation}
+ if ( exists $config->{orientation} );
+
$self->{RANDOM_START} = $config->{random_start}
if ( exists $config->{random_start} );
@@ -1033,6 +1036,8 @@
# edge merging
$dot .= "\tconcentrate=true;\n" if $self->{CONCENTRATE};
+ $dot .= "\torientation=$self->{ORIENTATION};\n" if
$self->{ORIENTATION};
+
# epsilon
$dot .= "\tepsilon=" . $self->{EPSILON} . ";\n" if $self->{EPSILON};