From: John H. <jdh...@ac...> - 2004-11-19 15:58:43
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> Hello, I used matplotlib to create a graphical Jochen> representation of the boot process of my Debian GNU/Linux Jochen> system. The result can be found at Jochen> http://seehuhn.de/comp/bootlog.html Jochen> and especially in the (2400x1500 sized) picture Jochen> http://seehuhn.de/comp/bootlog2.png After looking again at your plot, particularly the rectangle parts with text labels, it occurs to me that it would be nice to have a general purpose class for this (rectangular boxes with text labels). The class matplotlib.tables.Cell strives for this, but is not feature complete. What would be nice would be to be able to specify the location of the text with respect to the box, with horizontal and vertical alignment. This wouldn't be too hard, since text already has these alignment flags with respect to an x,y location ( eg http://matplotlib.sf.net/screenshots.html#align_text ). For full control, one would want to be able to specify the location of x,y with respect to the rectangle (left, center, bottom, right, etc) *and* the alignment of the text with respect to the x,y location, so that one could have -------------------- | | | centered | | | -------------------- -------------------- | | | | to-the-right | | -------------------- -------------------- |top-left-under | | | | | -------------------- top-left-over -------------------- | | | | | | -------------------- and so on..... All the components are in place to make this relatively easy from a layout persepctive. One just has to plug them together and make a nice, intuitive interface. JDH |