Why are we having so much trouble with batch plotting on Linux?

5 次查看(过去 30 天)
Hi everybody, this has has been troubling us for a while, and it sure would be nice to solve!
We are generating JPEG and SVG files from matlab (SVG via fprintf statements only) which we have the co-registrations of the image dimensions worked out beautifully. The trouble is that Matlab takes its own iniative and scales the jpeg plot however it sees fit when the jobs are run in batch mode.
We have a parallel farm that runs thousands of these jobs daily on Ubuntu 10.04, and we get inconsistent results. The plots are cropped or sometimes created at 640x480.
Clues:
1. Works fine from interactive shell.
2. The PERL daemon we use spawns non-interactive jobs (and X DISPLAY variable is not set). Seems to break regardless of whether TERM is 'unknown' or 'xterm'
3. The support docs that we have been able to find at Mathworks, etc. are silent as to what happens if the DISPLAY variable is not set, but it seems important.
4. We are generally calling Matlab thus:
matlab -logfile $MATLAB_LOG_FILE -nosplash -nodesktop -r "pulseWalker( '$1','$CHANNEL','$DETECTOR' );exit;"
Surely this is not new! Any clues?
Thanks a lot!!!

回答(1 个)

Walter Roberson
Walter Roberson 2011-12-5

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by