]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correct example
authorAndré Ribes <andre.ribes@edf.fr>
Wed, 7 Mar 2012 08:00:59 +0000 (09:00 +0100)
committerAndré Ribes <andre.ribes@edf.fr>
Wed, 7 Mar 2012 08:00:59 +0000 (09:00 +0100)
examples/daSalome/test004_ADAO_JDC_Observers_using_scripts.comm.in

index 07bf1d08e520b8e3247eb4f2ead63afe2fb0a34a..fec8c20becb73b1df062b8ad8478d907af12db24 100644 (file)
@@ -31,17 +31,17 @@ print
                                 Analysis_data=_F(NodeType='pyscript',
                                                  Value=
 """print "  ---> Mise en oeuvre de l'observer : affichage de la valeur courante"
-        print "       var  =",var.valueserie(-1)
-        print "       info =",info
-        #
-        import Gnuplot
-        gp = Gnuplot.Gnuplot()
-        gp('set style data lines')
-        gp('set title  "'+str(info)+'"')
-        gp.plot( Gnuplot.Data( var.valueserie(-1) ) )
-        global numero
-        numero += 1
-        filename = "image_%02i.ps"%numero
-        print "       sauvegarde image \"%s\""%filename
-        gp.hardcopy(filename=filename, color=1)
+print "       var  =",var.valueserie(-1)
+print "       info =",info
+#
+import Gnuplot
+gp = Gnuplot.Gnuplot()
+gp('set style data lines')
+gp('set title  "'+str(info)+'"')
+gp.plot( Gnuplot.Data( var.valueserie(-1) ) )
+global numero
+numero += 1
+filename = "image_%02i.ps"%numero
+print "       sauvegarde image %s" % filename
+gp.hardcopy(filename=filename, color=1)
 """,),),);