modif pltlk for more flexible plots