Drawing UML sequence diagrams with GNU plotutils
Requirements
- GNU PlotUtils
- NetPBM
- ImageMagick
- GhostScript
- The sequence.pic file
- The demo test.pic used in this example
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.
Leave a Comment