Sometimes, the user may want to plot a grid of trees that doesn't neatly fill an out nrows by ncols grid. For such cases, I think it's fine to leave the last few cells of the grid empty.
Sometimes, when plotting unrooted trees, the tip label angle is (I think?) straight up and down. This results in a divide by zero error. Fortunately, we actually want to the arctangent of this particular infinity, so we can bypass the errror by using the asymptotic limit of arctangent for this special case.
This PR handles a few minor edge cases.
Sometimes, the user may want to plot a grid of trees that doesn't neatly fill an out
nrows
byncols
grid. For such cases, I think it's fine to leave the last few cells of the grid empty.Sometimes, when plotting unrooted trees, the tip label angle is (I think?) straight up and down. This results in a divide by zero error. Fortunately, we actually want to the arctangent of this particular infinity, so we can bypass the errror by using the asymptotic limit of arctangent for this special case.