Showing posts with label inkscape. Show all posts
Showing posts with label inkscape. Show all posts

2015-02-23

Graphviz Diagrams

The following images show regular 5x5 grids with a nearest neighbor, ring or complete topology:


I recently found out that drawing these kind of images is easily possible using Graphviz and Python. A small script that automates creation of these images with arbitrary number of rows and columns can be downloaded here. The script creates a .svg file, which can be conveniently postprocessed with Inkscape. Usage of the script is as follows:

python ./graphviz_grid.py <num_rows> <num_cols> <ring|nn|compl> <outfilename.svg>

2011-08-09

Using the Xfig Library in Inkscape

Maybe you have used Inkscape before. It's a remarkable tool for creating vector graphics.

Sometimes it would be helpful to have a library with predefined images for all kinds of purposes (eg. arrows, symbols for schematics, fighter aircrafts, origami folding,...). An older program that is less frequently used to today, but comes with a nice library is Xfig.

Xfig has it's own file format which is a little unhandy. The following script can be used to convert the entire Xfig clipart library to .svg files. It works under Ubuntu. The package transfig is required for the conversion.