improved potential analysis visualization routine