10

Im trying to use pyreverse to generate images of UML diagrams for a project source code. When I run the pyreverse command and specify to generate .png images, it runs and then after a while, it shows:

dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.271394 to fit
dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.333083 to fit

Then if I open either image, the text is unreadable because it got scaled. Is there a way to just not scale, and let the image be large size?

  • 1
    Try this one: stackoverflow.com/questions/238724/…. Seems, pyreverse is using graphviz backend for drawing graphs (dot is language and utility of graphviz). – Boris Burkov Jan 24 '14 at 7:33
  • I see that link you gave, but I'm not sure how I can use it to fix this. Can you explain more please? – omega Jan 24 '14 at 16:59
  • Sorry, I don't have pyreverse on my distro, but the idea is that first you generate your output graph with pyreverse -o in .dot format with -o option and then manually invoke sfdp on it as described e.g. here: stackoverflow.com/questions/13417411/…. – Boris Burkov Jan 24 '14 at 17:56
  • That worked, but the classes are scattered all around in a circle. Is it possible to make them in a hierarchical view? (like on top of each other) – omega Jan 24 '14 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.