|
From: | Michael D Godfrey |
Subject: | Re: wait_for_file ?? [GL2PS error: Bad file pointer] |
Date: | Sat, 11 Sep 2010 16:29:53 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Thunderbird/3.1.3 |
The code below ... backend fltk more off plot (1:10) for n = 1:10 disp (n) fid = fopen ("test.eps", "wb"); drawnow ("eps", sprintf ("%d", fid)); endfor ... gives me ... 1 2 3 4 5 GL2PS error: Bad file pointer 6 7 GL2PS error: Bad file pointer 8 Ben, Have you tried an fclose(fid) after the drawnow? When I try this with the fclose, it seems to work. Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |