From flampis@emp.uc3m.es Mon Jun 27 09:55:55 2011 From: Federico Lampis UC3M To: gretl-users@gretlml.univpm.it Subject: [Gretl-users] yrange of gnuplot with scalar Date: Mon, 27 Jun 2011 15:55:51 +0200 Message-ID: <1309182951.1710.8.camel@b701> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2378364213424054584==" --===============2378364213424054584== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, is it possible to use some scalar in the commands of gnuplot? I have in my funcion a graph and it seems that gnuplot does not allow to put scalar in the yrange and xrange parameter: gnuplot lrc lrs otv --with-lines --output=display --single-yaxis { set title 'Confidence interval for Threshold'; set yrange [0:40]; } I need that gnuplot uses the maximum and minimum of my series. Thanks Federico --===============2378364213424054584==-- From cottrell@wfu.edu Tue Jun 28 09:45:43 2011 From: Cottrell, Allin To: gretl-users@gretlml.univpm.it Subject: Re: [Gretl-users] yrange of gnuplot with scalar Date: Tue, 28 Jun 2011 14:45:42 +0100 Message-ID: In-Reply-To: 1309182951.1710.8.camel@b701 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3118278925996118383==" --===============3118278925996118383== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Mon, Jun 27, 2011 at 2:55 PM, Federico Lampis UC3M wrote: > > is it possible to use some scalar in the commands of gnuplot? I have in > my funcion a graph and it seems that  gnuplot does not allow to put > scalar in the yrange and xrange parameter: > > gnuplot lrc lrs otv --with-lines --output=display --single-yaxis { set > title 'Confidence interval for Threshold'; set yrange [0:40]; } > > I need that gnuplot uses the maximum and minimum of my series. If I've understood your request correctly, the following script may help: The idea is to write your scalar value into a string, then use the "@" mechanism for string-substitution inside your gnuplot "literal" block. Gnuplot (of course) has its own mechanisms for dealing with scalar variables, but it doesn't know anything about variables defined within gretl. Hence the detour via strings. Allin Cottrell --===============3118278925996118383==-- From pindar@zedat.fu-berlin.de Tue Jun 28 16:32:01 2011 From: Leon Unger To: gretl-users@gretlml.univpm.it Subject: Re: [Gretl-users] yrange of gnuplot with scalar Date: Tue, 28 Jun 2011 22:30:13 +0200 Message-ID: In-Reply-To: BANLkTimGRrMP66KNzJT8XVd2MmW=EuibMg@mail.gmail.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7294412819828322030==" --===============7294412819828322030== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Thanks Allin! That's good to know: I just was creating range frame scatter plots ( a la E. Tufte) via the literal plot. Without string substitution it's cumbersome ;-) Cheers Leon Am 28.06.2011 um 15:45 schrieb "Cottrell, Allin" : > On Mon, Jun 27, 2011 at 2:55 PM, Federico Lampis UC3M > wrote: >> >> is it possible to use some scalar in the commands of gnuplot? I have in >> my funcion a graph and it seems that gnuplot does not allow to put >> scalar in the yrange and xrange parameter: >> >> gnuplot lrc lrs otv --with-lines --output=display --single-yaxis { set >> title 'Confidence interval for Threshold'; set yrange [0:40]; } >> >> I need that gnuplot uses the maximum and minimum of my series. > > If I've understood your request correctly, the following script may help: > > > > The idea is to write your scalar value into a string, then use the "@" > mechanism for string-substitution inside your gnuplot "literal" block. > > Gnuplot (of course) has its own mechanisms for dealing with scalar > variables, but it doesn't know anything about variables defined within > gretl. Hence the detour via strings. > > Allin Cottrell > > _______________________________________________ > Gretl-users mailing list > Gretl-users(a)lists.wfu.edu > http://lists.wfu.edu/mailman/listinfo/gretl-users --===============7294412819828322030==-- From helioxentric@gmail.com Tue Jun 28 19:16:09 2011 From: =?utf-8?q?H=C3=A9lio?= Guilherme To: gretl-users@gretlml.univpm.it Subject: Re: [Gretl-users] yrange of gnuplot with scalar Date: Wed, 29 Jun 2011 00:16:03 +0100 Message-ID: In-Reply-To: BANLkTimGRrMP66KNzJT8XVd2MmW=EuibMg@mail.gmail.com Content-Type: multipart/mixed; boundary="===============2264290663727881557==" --===============2264290663727881557== Content-Type: text/html Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.html" MIME-Version: 1.0 VGVzdGVkIHRoZXNlIGNvbW1hb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Eg aXMgdG8gd3JpdGUgeW91ciBzY2FsYXIgdmFsdWUgaW50byBhIHN0cmluZywgdGhlbiB1c2UgdGhl ICZxdW90O0AmcXVvdDs8YnI+Cm1lY2hhbmlzbSBmb3Igc3RyaW5nLXN1YnN0aXR1dGlvbiBpbnNp ZGUgeW91ciBnbnVwbG90ICZxdW90O2xpdGVyYWwmcXVvdDsgYmxvY2suPGJyPgo8YnI+CkdudXBs b3QgKG9mIGNvdXJzZSkgaGFzIGl0cyBvd24gbWVjaGFuaXNtcyBmb3IgZGVhbGluZyB3aXRoIHNj YWxhcjxicj4KdmFyaWFibGVzLCBidXQgaXQgZG9lc24mIzM5O3Qga25vdyBhbnl0aGluZyBhYm91 dCB2YXJpYWJsZXMgZGVmaW5lZCB3aXRoaW48YnI+CmdyZXRsLiBIZW5jZSB0aGUgZGV0b3VyIHZp YSBzdHJpbmdzLjxicj4KPGZvbnQgY29sb3I9IiM4ODg4ODgiPjxicj4KQWxsaW4gQ290dHJlbGw8 YnI+CjwvZm9udD48ZGl2PjxkaXY+PC9kaXY+PGRpdiBjbGFzcz0iaDUiPjxicj4KX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX188YnI+CkdyZXRsLXVzZXJzIG1h aWxpbmcgbGlzdDxicj4KPGEgaHJlZj0ibWFpbHRvOkdyZXRsLXVzZXJzQGxpc3RzLndmdS5lZHUi PkdyZXRsLXVzZXJzQGxpc3RzLndmdS5lZHU8L2E+PGJyPgo8YSBocmVmPSJodHRwOi8vbGlzdHMu d2Z1LmVkdS9tYWlsbWFuL2xpc3RpbmZvL2dyZXRsLXVzZXJzIiB0YXJnZXQ9Il9ibGFuayI+aHR0 cDovL2xpc3RzLndmdS5lZHUvbWFpbG1hbi9saXN0aW5mby9ncmV0bC11c2VyczwvYT48YnI+Cjwv ZGl2PjwvZGl2PjwvYmxvY2txdW90ZT48L2Rpdj48YnI+PC9kaXY+Cg== --===============2264290663727881557==-- From cottrell@wfu.edu Tue Jun 28 19:34:18 2011 From: Cottrell, Allin To: gretl-users@gretlml.univpm.it Subject: Re: [Gretl-users] yrange of gnuplot with scalar Date: Wed, 29 Jun 2011 00:34:16 +0100 Message-ID: In-Reply-To: BANLkTi=Wh+cBm9_QoPDwS3zMNT21EevG5A@mail.gmail.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4067562417114271693==" --===============4067562417114271693== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit >> 2011/6/29 Hélio Guilherme : > Tested these commands, and the plot works OK, but gretl complaints about it. > Appears a warning dialog box that the gnuplot command has failed ("Failed to > parse gnuplot file"). To make the file parseable for the gretl GUI, insert a space after "yrange": gnuplot price sqft {set yrange [0:@foo];} --output=display Allin --===============4067562417114271693==--