debug ld_test plotting