From: André Ribes Date: Wed, 7 Mar 2012 08:00:59 +0000 (+0100) Subject: Correct example X-Git-Tag: V6_5_0~25^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=27ee449bd79169454fce8029d1780a99fb3ce79b;p=modules%2Fadao.git Correct example --- diff --git a/examples/daSalome/test004_ADAO_JDC_Observers_using_scripts.comm.in b/examples/daSalome/test004_ADAO_JDC_Observers_using_scripts.comm.in index 07bf1d0..fec8c20 100644 --- a/examples/daSalome/test004_ADAO_JDC_Observers_using_scripts.comm.in +++ b/examples/daSalome/test004_ADAO_JDC_Observers_using_scripts.comm.in @@ -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) """,),),);