th2f support in plotting script