Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002539graphvizDotpublic2015-04-22 00:462015-04-23 09:31
ReporterNoriko Etani 
Assigned To 
PriorityurgentSeveritycriticalReproducibilityalways
StatusnewResolutionopen 
PlatformDELL PRECISION T5500OSLinux Fedora OS Version20
Summary0002539: scaling: how to manage error message
DescriptionDear Sirs,

The below command line was executed.
    dot -Tpng jsnp.dot -o jsnp.png
After that, the following error message was shown.
    dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.481946 to fit
How should I manage it to output graph data?

Best Wishes,
Noriko Etani
Steps To Reproduce[netani@localhost tool]$ dot -Tpng jsnp.dot -o jsnp.png
dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.481946 to fit
Additional Information[netani@localhost tool]$ dot -version
dot - graphviz version 2.39.20140501.0445 (20140501.0445)
libdir = "/usr/lib64/graphviz"
Activated plugin library: libgvplugin_dot_layout.so.6
Using layout: dot:dot_layout
Activated plugin library: libgvplugin_core.so.6
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
    /usr/lib64/graphviz/config6
        was successfully loaded.
    render : cairo dot fig gd lasi map pic pov ps svg tk vml vrml xdot
    layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout : textlayout
    device : bmp canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gtk gv ico imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tga tif tiff tk vml vmlz vrml wbmp webp x11 xdot xdot1.2 xdot1.4 xlib
    loadimage : (lib) bmp eps gd gd2 gif ico jpe jpeg jpg pdf png ps svg webp xbm
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.39.20140501.0445 (20140501.0445)
Attached Files

- Relationships

-  Notes
User avatar (0000929)
ellson (administrator)
2015-04-22 09:07

I don't understand what you are reporting. Are you saying there was no output at all? Or are you just surprised that it was scaled down to fit the maximum size bitmap that can be generated?

If you have a really large graph, you might want to consider using a vector format such as -Tsvg
User avatar (0000930)
erg (administrator)
2015-04-22 16:00

Sometimes, scaling can still fail, causing a crash. I don't know if that what is happening here.

In addition to using a vector output format such as svg, you can also use the size attribute to specify a reasonable maximum size. This can give you a good overview of the large structure of the graph, but if you want to zoom in for finer detail, vector graphics is the way to go. Or use the viewport attribute.
User avatar (0000931)
Noriko Etani (reporter)
2015-04-22 22:04

Hi,
Thank you for your quick reply.

>>I don't understand what you are reporting.
 When a command line of "dot" was executed and the error message of "dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.481946 to fit" was shown, I would like to know how to operate parameter tuning of a command line or how to arrange scaling by 0.481946 to fit shown in a error message.

After that, I tried to execute a command line of "neato", a graph view was shown and its whole image could be viewed. A huge number of graph node cannot be drawn with a command line of "dot". So, I have arranged the data and reduced the number of the graph node in my case.

Thanks.
User avatar (0000932)
erg (administrator)
2015-04-23 09:31

Dot automatically determines if the output bitmap would be too large and does the scaling for you. In this case, there should be a file jsnp.png containing the output. It will still probably be too large to be easily usable. As mentioned above, you may find it better to use the size or viewport attributes, or create vector output.

In general, a dot layout guarantees that nodes don't overlap and that edges (mostly) point downward. This means that a large graph will likely produce a large drawing. Neato and sfdp don't remove node overlaps by default and use entirely different aesthetics for layout, so the same graph that gets a large dot drawing may have a reasonable sized drawing using neato or sfdp, assuming you don't mind the node overlap.

- Issue History
Date Modified Username Field Change
2015-04-22 00:46 Noriko Etani New Issue
2015-04-22 09:07 ellson Note Added: 0000929
2015-04-22 16:00 erg Note Added: 0000930
2015-04-22 22:04 Noriko Etani Note Added: 0000931
2015-04-23 09:31 erg Note Added: 0000932


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