Monitor plotting - "p" is a global variable.