Hi there,
as I found out that American Airlines does have power supplies on board of
transatlantic flights I've made some more pretty pictures for SAGE's class
hierarchy.
They look much more structured now because:
(a) I only use the biggest connected subgraph which helps the spring layout a
lot
(b) I postprocess the SVG with a whitelist of class names (no pretty code, but
it works):
from xml.dom.minidom import parse
domtree = parse('/home/malb/file.svg')
svg = domtree.childNodes[2] # svg
figlist = svg.childNodes[1] # g figlist
whitelist =
['SageObject','RingElement','Element','Ring','Expect','ParentWithGens']
remove_list = []
textlist = figlist.childNodes[3]
for node in textlist.childNodes:
if node.nodeName == "text":
if node.childNodes[0].nodeValue not in whitelist:
remove_list.append(node)
for node in remove_list:
textlist.childNodes.remove(node)
domtree.writexml(open("/home/malb/file2.svg","w"))
The result can be found at:
http://sage.math.washington.edu/home/malb/graphics/class_hierarchy/
Martin
PS: Robert, would it be very hard to accept a fontsize parameter for
Graph.plot/show ?
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---