when submitting a job to execute a python script that uses matplotlib to create figures, I get the error "Unable to access the X Display, is $DISPLAY set properly?".
I use NX and submitted the job with qsub -V.
$DISPLAY was first 50002.0 but setting "export DISPLAY=ba3.mit.edu:50002.0" did not solve anything.