ETE: cannot connect to X server (#server-name):0.0
def drawTree( self ):ts = ete2.TreeStyle()ts.mode = "c"ts.layout_fn = self.my_layoutt = self.prepareTree() # my own functiont.render("mytree.svg", tree_style=ts)The error seems to be relevant to xhost. I have try "xhost +local:myusername" without root permission, and xhost return error:xhost: unable to open display "#servername:0.0"What can I do with it?Thanks,Jing
export DISPLAY=local_host:0.0It's pretty simple but it may helps.
--
You received this message because you are subscribed to the Google Groups "The ETE toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etetoolkit+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Only way is to render the image as svg or pdf format. same render function, just change output file extension.
bw
Jaime
So any nice svg viewer for a large svg file? I found Adobe SVG viewer and Adobe Illustrator, but I am not sure whether those are good for hundreds of nodes and face figures.
For pdf, do I need to set the width and height also?