Drawing UML sequence diagrams with GNU plotutils

UML Sequence Diagram

Requirements

Instructions

sequence.pic comes from the UMLGraph Declarative Drawing of UML Diagrams package.

Download sequence.pic and test.pic and put them both in the same directory.

Go to that directory and issue the following command:

pic2plot -Tps test.pic | gs -q -r360 -dNOPAUSE -sDEVICE=pnm -sOutputFile=- - -c quit | pnmcrop | convert -transparent "#ffffff" -resize "33%" - test.png

If everything went OK, you should obtain the image presented above.

Powered by Blogger.