|
From: Magnus L. H. <ma...@he...> - 2003-12-29 09:45:04
|
Andre Wobst <wo...@us...>: > [snip] > This might be a sourceforge problem. They had quite some performance > problems with the CVS. Indeed -- it's there now :) [snip] > Another note about your original problem with the valign: Did you > consider a baseline alignment and an appropriate vertical shift? Well, I tried to use text.vshift.char(0.5), but that didn't work (deprecated?). Is that the same as text.vshift(0.5)? > You gain a vertical alignment independend of the box extent. See the > valign example ... This might be a possibility. What I need this for at the moment is placing labels in circular graph nodes. I'm thinking about writing an automated graph algorithm visualization program (for producing slides for an algorithm class I'm teaching), and PyX seems like a good thing to use. (I'll probably write a separate module for graph drawing, which might be useful to other PyX users as well.) If I place several nodes alongside each other, it may be good to have the labels aligned by their baselinge, so that (e.g.) b and g are properly aligned. However, if the nodes are scattered all over the place, simply aligning based on the total height of the character will "fill out" the node more, and seem less vertically skewed. (I could, of course, use only capital letters... Or numbers... Then there would be no problem :) Anyway, thanks for your help. I'll experiment a bit with shifting and aligning and see what I end up with. (Maybe I'll just use dotted nodes with external labels.) > Andr=E9 --=20 Magnus Lie Hetland "The mind is not a vessel to be filled, http://hetland.org but a fire to be lighted." [Plutarch] |