Perl 6 - the future is here, just unevenly distributed

IRC log for #opentreeoflife, 2015-04-08

| Channels | #opentreeoflife index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
03:29 kcranstn joined #opentreeoflife
12:42 jar286 joined #opentreeoflife
13:35 kcranstn joined #opentreeoflife
15:33 jimallman jar286: regarding your tree-illustrator requests (Newick input and SVG output), see the latest prototype: http://rawgit.com/OpenTreeOfLife/tree-illustrator/master/stylist/stylist.html
15:34 jimallman this version offers a field (in tree properties > Data source > Upload tree data) where you can paste Newick, and it will be converted by the to_nexson service on devtree.
15:35 jimallman you can retrieve output SVG by checking the print option “Show output SVG (to clip and save)”. this will put print-ready SVG into a child window so it can be saved to a file.
15:35 jimallman UI is a bit clunky, but it’s working well for me.
15:36 jar286 I don’t see tree properties
15:36 jimallman each tree is a block in the element “stack” on the right.
15:36 jimallman so click “Untitled (tree-1)” to see its properties
15:37 jar286 Error:
15:37 jar286 Expecting a ( to start the tree description, but found ;
15:37 jar286 at line 1, column (approximately) 2 (and file position 0)
15:38 jimallman can you paste your newick?
15:38 jar286 (a,(b,c),d)e
15:38 jimallman trying that now… fyi, this works for me:   (a,(((b,Chuck,d),FRED,e), George));
15:38 jar286 I didn’t put the ;
15:39 jimallman i got better results with an outer set of parens:   ((a,(b,c),d)e);
15:39 jar286 works with ; at end
15:39 kcranstn both the outer parenthesis and the ; should be required, I think
15:39 kcranstn parentheses
15:40 jar286 I don’t think the outer parens are needed… I’ll check the spec
15:40 jimallman yes, and it really wants a comma before the final sibling (if ‘e’ is a separate node):  ((a,(b,c),d),e);
15:47 jar286 no, e is not a sibling, it’s an internal node label
15:47 jar286 so no comma
15:48 jar286 (a,b)c  means c is a label for the node (a,b)
15:48 jar286 jimallman, you probably know this and it’s extremely nitpicky, but your approach of using one path per segment means the ‘elbows’ won’t look right at high magnification
15:49 jimallman yes, i noticed that they’re already goofy if you use the styles called “Playing with the zoom”
15:50 jimallman i believe SVG offers nicer endcaps that might solve the problem. i’ll make an issue for this!
15:50 jar286 I think you just make longer paths.  (like postscript)
15:53 jar286 hmm, I’ve zoomed in and it looks fine… I must have misread the SVG.  you already do C-shaped paths apparently
15:56 jimallman yeah, it holds up pretty well, but i found one odd case, shown here: https://github.com/OpenTreeOfLife/tree-illustrator/issues/8
15:57 jimallman this could probably be resolved by using round endcaps so that all edges merge seamlessly on a node.
16:23 jar286 joined #opentreeoflife
16:56 jar286 joined #opentreeoflife
17:02 jar286 joined #opentreeoflife
21:05 jar286 joined #opentreeoflife

| Channels | #opentreeoflife index | Today | | Search | Google Search | Plain-Text | summary