Salome HOME
Correction de collision
[modules/adao.git] / examples / daSalome / test006_Observers_observer_with_file.py
1 print "  ---> observerState"
2 print "       var  =",var[-1]
3 print "       info =",info
4 #
5 import Gnuplot
6 import os
7
8 try:
9   numero
10 except NameError:
11   numero = 0
12
13 gp = Gnuplot.Gnuplot()
14 gp('set style data lines')
15 gp('set title  "'+str(info)+'"')
16 gp.plot( Gnuplot.Data( var[-1] ) )
17
18 filename = os.path.join("/tmp", "imageState_%02i.ps"%numero)
19 print "       imageState \"%s\""%filename
20
21 gp.hardcopy(filename=filename, color=1)
22 numero += 1