Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001315graphvizDotpublic2008-05-05 03:122011-04-28 04:03
ReporterPeter Landgren 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-2.6.24.4-desktop-1mnbOS Version
Summary0001315: Incomplete graphs if margin less than half inch in most cases
Description



command like: dot -Tps -o1cm_margin.ps 1cm_margin.dot gives



With \<A HREF="b1348.dot"\>1 cm margins\</A\>:\<BR\>
Using gwenview to show the result gives this:\<BR\>
\<A HREF="b1348.gif"\>GIF\</A\> one page with incomplete graph upper part\<BR\>
\<A HREF="b1348.jpg"\>JPG\</A\> one page with incomplete graph upper part\<BR\>
\<A HREF="b1348.png"\>PNG\</A\> one page with incomplete graph lower part\<BR\>
\<A HREF="b1348.ps"\>PS\</A\> one page with incomplete graph lower part,\<BR\>
\<A HREF="b1348.svg"\>SVG\</A\> one page with incomplete graph upper part\<BR\>



Using evince to show the result gives this:\<BR\>
GIF one page with incomplete graph upper part\<BR\>
JPG one page with incomplete graph upper part\<BR\>
PNG one page with incomplete graph lower part\<BR\>
PS complete graph on two pages\<BR\>
SVG one page with the upper part\<BR\>
\<A HREF="b1348.pdf"\>PDF\</A\> (with ghostscript from ps) complete graph on two pages\<BR\>
\<A HREF="b1348a.pdf"\>PDF\</A\> (with graphviz) one page with incomplete graph upper part\<BR\>



With \<A HREF="b1348a.dot"\>1.3 cm margin (half inch)\</A\>:\<BR\>
One page with complete graph for all output formats.\<BR\>
\<A HREF="b1348a.ps"\>PS\</A\>\<BR\>
\<A HREF="b1348a.png"\>PNG\</A\>\<BR\>
\<A HREF="b1348b.pdf"\>Ghostscript PDF\</A\>\<BR\>
\<A HREF="b1348c.pdf"\>Graphviz PDF\</A\>\<BR\>



I attach both 1 cm margin and half inch examples.
Additional Information

[ellson] asically you're over-specifying and not leaving any room for dot
to work.

The reason you are only seeing half drawings is because you have enabled paging
and are using output formats that don't support it, so you are seeing the first page only.

The reason your graph is taking two pages is because there are apparently different
rounding assumptions internally, than the ones you have made in selecting sizes.
With this change it will fit on a single page:
<CD>
   $ diff 1cm_margin.dot.orig 1cm_margin.dot 19c19
   < margin="0.39,0.39";
   ---
   > margin="0.38,0.38";
</CD>

Alternatively, this also fixes it:

<CD>
   diff 1cm_margin.dot.orig 1cm_margin.dot
   18c18
   < size="10.91,7.48";
   ---
   > size="10.90,7.47";
</CD>


Basically, I don't see any bug here.

TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b1348.dot [^] http://www.graphviz.org/bugs/b1348.gif [^] http://www.graphviz.org/bugs/b1348.jpg [^] http://www.graphviz.org/bugs/b1348.png [^] http://www.graphviz.org/bugs/b1348.ps [^] http://www.graphviz.org/bugs/b1348.svg [^] http://www.graphviz.or [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID1348
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.19.20080504.0445
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker