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.

Fichier attachéTaille
1.JPG18.43 Ko
2d_matrix_print.txt5.23 Ko

Commentaires

Added capabilities

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

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.