...and again.

---------- Forwarded message ----------
From: Daniel Wheeler <daniel.wheel...@gmail.com>
Date: Tue, Nov 1, 2011 at 11:12 AM
Subject: Re: open virtually the graphics interface ....
To: Julien Derr <julien.d...@gmail.com>


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 <julien.d...@gmail.com> 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
> fipy@nist.gov
> http://www.ctcms.nist.gov/fipy
>  [NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy]
>
>


-- 
Daniel Wheeler



-- 
Daniel Wheeler
_______________________________________________
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy]

Reply via email to