Re: subroutine
Dan via gnuplot-info <[email protected]>
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <alpine.LRH.2.21.1907311708530.17368@shepherd> |
On Thu, 27 Jun 2019, Patrick Dupre wrote:
> Can I make a subroutine like
> sub F () {
> list of gnuplot calls ;
> }
Yes. In Gnuplot 5.0, you can define such a subroutine by, for example
mysub = "set terminal x11 1; plot x**a; set terminal x11 2; plot x**b"
then call that subroutine by
a = 2.0
b = 3.0
@mysub
--
Kind regards,
Dan
_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info