I am frustrated. I found these Perl libraries to buld treemaps (Treemap::Squarified). The problem is that it needs this special input format, which is either an XML tree or you can hack it into the internal perl datastructure which are basically a bunch of arrays. Once I figured out the internal datastructure (I was too lazy to go through XML), it got worse. You need to do everything yourself. The library does not even take care of sizing the pieces for you. You need to make sure that the numbers along the hierarchy are all correct and add up. But that’s not all. After playing with that for a while (basically my problem was to convert CSV to a tree; no I did not finish implementing it), I got into GTK2 coding. Well, that’s a mess too. Hardly anything documented. I just wanted to show some pictures in a window. Easy? No! I wanted to resize them to fit two arbitrary images into one window. Resize? I could not quite figure out how to have pixbufs and Gtk2 and all that interact. So I gave up…
Back to a language that I know a bit better: JAVA. Starting over…
January 28, 2006
GTK2 and Perl and Treemaps
1 Comment »
RSS feed for comments on this post. | TrackBack URI
Have u tried http://search.cpan.org/dist/Gtk2-Ex-TreeMap/
Here is a screenshot http://ofey.blogspot.com/2005/06/gtk2-perl-source-1.html
Comment by ofey — February 19, 2006 @ 7:32 pm