From 27ee449bd79169454fce8029d1780a99fb3ce79b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= Date: Wed, 7 Mar 2012 09:00:59 +0100 Subject: [PATCH] Correct example --- ...4_ADAO_JDC_Observers_using_scripts.comm.in | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) 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) """,),),); -- 2.39.2