thanks Daniel and Boris! for some reasons both of your solution don't exactly work (they print a file which is empty...) but I got the idea... and will fiddle with it ... thanks again,
Julien On Tue, Nov 1, 2011 at 12:06 PM, Daniel Wheeler <[email protected]>wrote: > ...and again. > > > ---------- Forwarded message ---------- > From: Daniel Wheeler <[email protected]> > Date: Tue, Nov 1, 2011 at 11:12 AM > Subject: Re: open virtually the graphics interface .... > To: Julien Derr <[email protected]> > > > Julien, > > Try the script below and see if it works for you. Also comment out this > line < > http://matforge.org/fipy/browser/trunk/fipy/viewers/matplotlibViewer/matplotlibViewer.py#L152 > >. > > import pylab > pylab.ioff() > > from fipy import * > m = Grid2D(nx=4, ny=4) > x, y = m.cellCenters > > v = CellVariable(mesh=m, value=x * y) > > vi = Viewer(v) > vi.plot('tmp.png') > raw_input('finished') > > It should produce a file only without dumping anything to the screen. You > could also pickle the data and view it later. > > Cheers > > On Mon, Oct 31, 2011 at 12:43 PM, Julien Derr <[email protected]>wrote: > >> Hi Everyone, >> >> for now, I am displaying some of the key parameters with Viewer() and >> save the images with the instructions savefig() >> >> I would like to be able to run my code by ssh from a remote machine ... ; >> but then I rune into displaying problems ... is it possible to virtually >> open this graphs without actually asking the loca computer to do it ... >> >> >> not sure if I am clear .. tell me if you understand and or if you would >> have a solution .... >> >> PS I already tried the DISPLAY=:0 before launching python .. but do not >> work ... >> thanks ! >> >> Ju >> >> _______________________________________________ >> fipy mailing list >> [email protected] >> http://www.ctcms.nist.gov/fipy >> [NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy] >> >> > > > -- > Daniel Wheeler > > > > -- > Daniel Wheeler > > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy] > >
_______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy]
