Plot closes immediately

The following posting can possibly provide some help: