[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] $DISPLAY screwing up with EPS when matlab run in background?



On 4/29/05, H. S. <greatexcalibur@yahoo.com> wrote:
> 
> (I posted this in comp.soft-sys.matlab but got no response, so I am
> trying my luck here)
> 
> Hi,
> 
> (matlab version: (version 6.5.1.199709 (R13) Service Pack 1)  )
> I am trying to run a matlab function I wrote in the background. The
> function plots the color histogram of a given image, opens the plot
> window and prints out the figure to an EPS file. When I run the function
> from within a matlab session, everything works fine. But when I run it
> in background, problem arises in the eps file generated.
> 
> I have a bunch of images to make histograms of. So I wrote a shell
> script which calls matlab in the background and runs the function over
> all the images. However, I do not get a proper EPS file. The resulting
> file is just tiny little white square. The output file of the background
> session does not report any errors.
> 

That seems to be a known bug of Matlab 6.X, basically matlab need the
$DISPLAY variable to get correct dimensions of the figures. There is
no work around.

However MATLAB7.X had fixed that bug.

HTH 
-- 
Yongtao Yang

email: yongtao.yang@gmail.com



Reply to: