get.tablepos function

Get the position for a legend or table