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>
This blog is supposed to be a collection of random, unrelated, little ideas, thoughts, and discoveries, which I assume to be helpful to a negligible part of the world's population and wish to share out of pure altruism. If posts appear really weird, maybe you have the wrong kind of humor. Many of the posts are science/technology related. If you are opposed to that, stop reading here! Comments, criticism, corrections, amendments, questions are always welcome.
Showing posts with label inkscape. Show all posts
Showing posts with label inkscape. Show all posts
2015-02-23
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.
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.
Subscribe to:
Posts (Atom)


