Modify plotting functionality