figtree icon indicating copy to clipboard operation
figtree copied to clipboard

Grid lines out of field after clicking reverse axis

Open santiagosnchez opened this issue 6 years ago • 3 comments

I'm almost certain this bug was introduced with v1.4 and it has persisted for a while, probably unnoticed. The problem is simple. The default behavior after clicking "scale axis" is to show grid bars and a time axis that shows lower to higher integers from left to right. This probably works fabulously for time-stamped data in calendar years (such as viral phylogenies) as older years will be lower integers than years closer to the present (i.e. 1960 vs 2019). However, a lot of phylogenies are projected in millions of years, where typically the present (right side) is time 0 and the root is > 0. This requires that the axis be reversed. Take the example below:

You add grid lines and a time axis by clicking "scale axis". image You can note that after reversing the axis the grid lines disappear and the axis becomes negative. This is all fine. image The problem is that the grid lines are really not disappearing. They are shifted to the left and become out of the tree field. You can check this by exporting the tree as PDF and opening it in Adobe Illustrator or Inkscape and releasing all clipping masks. image This clearly shows this is a bug, as I recall previous versions of FigTree did not behave like this. It would be great to have this functionality restored. Thanks.

santiagosnchez avatar Nov 29 '19 15:11 santiagosnchez

Same here. This bug has been present for a while. When you reverse the axis, the grid lines always teleport to the left, somewhere outside the screen.

atanvardo avatar Dec 04 '19 16:12 atanvardo

I use this option in almost every coalescence tree, it is annoying that the grid lines are misplaced. Please fix it! Thank you

Alqueno avatar Jul 04 '23 22:07 Alqueno

Has somebody maybe found a work around ? Its still not working

TessaZei avatar Jun 12 '24 11:06 TessaZei