Added a padding to the graph to prevent the text cut

This commit is contained in:
Alejandro Gallardo Escobar 2015-03-31 14:11:17 +02:00
parent 521845ee91
commit c0bc9ad136
1 changed files with 3 additions and 2 deletions

View File

@ -1430,12 +1430,13 @@ function networkmap_open_graph ($layout, $nooverlap, $pure, $zoom, $ranksep, $fo
$size = $size_x . ',' . $size_y;
// BEWARE: graphwiz DONT use single ('), you need double (")
$head = "graph networkmap { bgcolor=\"transparent\"; labeljust=l; margin=0; ";
$head = "graph networkmap { bgcolor=\"transparent\"; labeljust=l; margin=0; pad=\"0.75,0.75\";";
if ($nooverlap != '') {
$head .= "overlap=\"$overlap\";";
$head .= "ranksep=\"$ranksep\";";
$head .= "outputorder=edgesfirst;";
}
}
$head .= "ratio=fill;";
$head .= "root=0;";
$head .= "size=\"$size\";";