lock plotting