• 26 May 2013 - Since the new version attracted too many spammy registrations (around 250 fake accounts/day), user registrations are now protected by Mollom's spam protection service. Contact us if this causes some trouble.
  • 01 May 2013 - After the site upgrade, all passwords were reset and you will need to ask the site for a login reset on your first connection.

function to print 2D matrix in Gtk Textview with row and col labels (improved).

This is a function to print a 2 dimension matrix in a Gtk Textview (Gtk Buffer). The function will take care of putting together correctly all row and coloumn labels. A label for the corner of the matrix is considered too.
A title can be given as well. As for gtk widgets only the buffer is asked, all the rest are taken care by the function. A fixed coloumn width is assumed.

AttachmentSize
1.JPG18.43 KB
2d_matrix_print.txt5.23 KB

Comments

Added capabilities

The code has been edited to support non square matrices too.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.