beast-dev / tracer

Posterior summarisation in Bayesian phylogenetics
https://beast.community/tracer
GNU Lesser General Public License v2.1
55 stars 17 forks source link

For integer valued variables, tracer produces too many tick marks & labels #162

Open bredelings opened 3 years ago

bredelings commented 3 years ago

If I look at a variable with integer values between 0 and 1000, tracer will produce 1000 tick marks. The main problem is that the labels for the tick marks are drawn on top of each other.

This worked fine before tracer tried to use different methods of drawing tick marks for integer variables, but now the axis labels for integer values are more or less unreadable.

One approach would be to fall back to the old way (i.e. for continuous variables) if the range contains more than 50/100 integer values.

rambaut commented 1 year ago

For discrete axis, the aim was to show all values but this should only be for when there are less than a certain number of states.