You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed when writing trees to file with gotree draw svg and gotree draw png tip labels get cut off. I think, for SVG at least, this is because only +60 is added to the width (and height) parameters. This can be fixed by editing the svg attribute width="100%" or replacing width with overflow="visible". Could one of these be made default, or added as an option? This is also an issue with PNGs, but I do not have a workaround for that.
Another issue with PNGs is that the transparent background appears gray in Dark Mode. Could an option be added to create PNGs with a white background?
I tested the above with the following newick (sorry, .nwk not an accepted upload):
That is something I wanted to work on for a long time. The commits solve part of the drawing issues (especially with "normal" layout), but there are still work to do with circular and radial layouts.
Hello -
I've noticed when writing trees to file with
gotree draw svg
andgotree draw png
tip labels get cut off. I think, for SVG at least, this is because only +60 is added to the width (and height) parameters. This can be fixed by editing the svg attributewidth="100%"
or replacing width withoverflow="visible"
. Could one of these be made default, or added as an option? This is also an issue with PNGs, but I do not have a workaround for that.Another issue with PNGs is that the transparent background appears gray in Dark Mode. Could an option be added to create PNGs with a white background?
I tested the above with the following newick (sorry, .nwk not an accepted upload):
(long-label-20:0.0001775,(long-label-21:0,((long-label-12:0,long-label-13:0.000076,long-label-08:0,long-label-08-1:0,(long-label-09:0,really-long-label-11:0.000034):0.000069,long-label-07:0,long-label-19:0):0.000034,long-label-10:0,long-label-10-1:0,long-label-10-2:0,long-label-06:0,long-label-05:0,long-label-17:0,long-label-02:0,long-label-04:0,long-label-03:0,long-label-01:0):0.000102):0.0001775);
Using:
gotree draw svg < in.nwk
gotree draw png < in.nwk
Thanks,
Sara
The text was updated successfully, but these errors were encountered: