Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2720 > unrolled thread

bug when using pslatex

Started by"hugocoolens@gmail.com" <hugocoolens@gmail.com>
First post2015-01-21 03:03 -0800
Last post2015-01-22 10:52 +0100
Articles 6 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  bug when using pslatex "hugocoolens@gmail.com" <hugocoolens@gmail.com> - 2015-01-21 03:03 -0800
    Re: bug when using pslatex Karl <mail.kfr@gmx.net> - 2015-01-21 12:15 +0100
      Re: bug when using pslatex "hugocoolens@gmail.com" <hugocoolens@gmail.com> - 2015-01-21 06:53 -0800
        Re: bug when using pslatex Karl <mail.kfr@gmx.net> - 2015-01-21 16:39 +0100
          Re: bug when using pslatex "hugocoolens@gmail.com" <hugocoolens@gmail.com> - 2015-01-22 00:32 -0800
            Re: bug when using pslatex Karl <mail.kfr@gmx.net> - 2015-01-22 10:52 +0100

#2720 — bug when using pslatex

From"hugocoolens@gmail.com" <hugocoolens@gmail.com>
Date2015-01-21 03:03 -0800
Subjectbug when using pslatex
Message-ID<9ffe14f7-de9d-471e-a98d-2f8120d9366e@googlegroups.com>
I noticed with the following strange Gnuplot behaviour which very much looks like a bug to me:

I checked this for three versions of Gnuplot:
G N U P L O T Version 5.1 patchlevel 0    last modified 2015-01-20 
G N U P L O T Version 4.6 patchlevel 0    last modified 2012-03-04 
G N U P L O T Version 4.7 patchlevel 0    


Start Gnuplot en enter the following commands:
set terminal pslatex size 25cm,17cm
set output 'test.tex'
plot x**2

When you have a look at the resulting test.tex file, the following three lines at the end of the file are missing:

\end{picture}%
\endgroup
\endinput

When running "set output 'test.tex'" and "plot x**2" a second time, a file test.tex without this error is produced.

I also noticed that when I put the three commands in a batch-file test.gp and run 
them as gnuplot <test.gp the file produced is also error free.

kind regards,
Hugo Coolens

p.s. I remember having noticed this behaviour years ago when using wxmaxima
which uses Gnuplot for graphics

[toc] | [next] | [standalone]


#2721

FromKarl <mail.kfr@gmx.net>
Date2015-01-21 12:15 +0100
Message-ID<m9o1og$dd6$1@news.rz.uni-karlsruhe.de>
In reply to#2720
Am 21.01.2015 um 12:03 schrieb hugocoolens@gmail.com:
> I noticed with the following strange Gnuplot behaviour which very much looks like a bug to me:
> 
> I checked this for three versions of Gnuplot:
> G N U P L O T Version 5.1 patchlevel 0    last modified 2015-01-20 
> G N U P L O T Version 4.6 patchlevel 0    last modified 2012-03-04 
> G N U P L O T Version 4.7 patchlevel 0    
> 
> 
> Start Gnuplot en enter the following commands:
> set terminal pslatex size 25cm,17cm
> set output 'test.tex'
> plot x**2
> 
> When you have a look at the resulting test.tex file, the following three lines at the end of the file are missing:
> 
> \end{picture}%
> \endgroup
> \endinput

You have forgotten to close the output file via "set output". Only then
the three missing lines are added. I´m not exactly sure why this is done
the way it is.

set term pslatex
set out "test1.tex"
plot x
set out


[toc] | [prev] | [next] | [standalone]


#2722

From"hugocoolens@gmail.com" <hugocoolens@gmail.com>
Date2015-01-21 06:53 -0800
Message-ID<dc58d74f-4778-43c7-abdd-3910e6adc690@googlegroups.com>
In reply to#2721
Op woensdag 21 januari 2015 12:15:29 UTC+1 schreef Karl:
> Am 21.01.2015 um 12:03 schrieb hugocoolens@gmail.com:
> > I noticed with the following strange Gnuplot behaviour which very much looks like a bug to me:
> > 
> > I checked this for three versions of Gnuplot:
> > G N U P L O T Version 5.1 patchlevel 0    last modified 2015-01-20 
> > G N U P L O T Version 4.6 patchlevel 0    last modified 2012-03-04 
> > G N U P L O T Version 4.7 patchlevel 0    
> > 
> > 
> > Start Gnuplot en enter the following commands:
> > set terminal pslatex size 25cm,17cm
> > set output 'test.tex'
> > plot x**2
> > 
> > When you have a look at the resulting test.tex file, the following three lines at the end of the file are missing:
> > 
> > \end{picture}%
> > \endgroup
> > \endinput
> 
> You have forgotten to close the output file via "set output". Only then
> the three missing lines are added. I´m not exactly sure why this is done
> the way it is.
> 
> set term pslatex
> set out "test1.tex"
> plot x
> set out

thanks a lot, this has been bothering me for a long time

kind regards,
Hugo

[toc] | [prev] | [next] | [standalone]


#2723

FromKarl <mail.kfr@gmx.net>
Date2015-01-21 16:39 +0100
Message-ID<m9oh6v$riq$1@news.rz.uni-karlsruhe.de>
In reply to#2722
Am 21.01.2015 um 15:53 schrieb hugocoolens@gmail.com:
> Op woensdag 21 januari 2015 12:15:29 UTC+1 schreef Karl:
>> You have forgotten to close the output file via "set output". Only then
>> the three missing lines are added. I´m not exactly sure why this is done
>> the way it is.
>>
>> set term pslatex
>> set out "test1.tex"
>> plot x
>> set out
> 
> thanks a lot, this has been bothering me for a long time
> 
> kind regards,
> Hugo

You´re welcome.

It is funny though, why gp actually writes/closes the file, and then
reopens it to append those three lines.

[toc] | [prev] | [next] | [standalone]


#2724

From"hugocoolens@gmail.com" <hugocoolens@gmail.com>
Date2015-01-22 00:32 -0800
Message-ID<98a6573a-d467-4908-b320-ac8c43db99ca@googlegroups.com>
In reply to#2723
Op woensdag 21 januari 2015 16:39:12 UTC+1 schreef Karl:
> Am 21.01.2015 um 15:53 schrieb hugocoolens@gmail.com:
> > Op woensdag 21 januari 2015 12:15:29 UTC+1 schreef Karl:
> >> You have forgotten to close the output file via "set output". Only then
> >> the three missing lines are added. I´m not exactly sure why this is done
> >> the way it is.
> >>
> >> set term pslatex
> >> set out "test1.tex"
> >> plot x
> >> set out
> > 
> > thanks a lot, this has been bothering me for a long time
> > 
> > kind regards,
> > Hugo
> 
> You´re welcome.
> 
> It is funny though, why gp actually writes/closes the file, and then
> reopens it to append those three lines.
What's also strange is that for other file-type like png or postscript, the extra statement "set output" is not necessary. That's the reason why I didn't do it until now for pslatex neither

regards,
Hugo

[toc] | [prev] | [next] | [standalone]


#2725

FromKarl <mail.kfr@gmx.net>
Date2015-01-22 10:52 +0100
Message-ID<m9qh8v$24c$1@news.rz.uni-karlsruhe.de>
In reply to#2724
Am 22.01.2015 um 09:32 schrieb hugocoolens@gmail.com:
>> It is funny though, why gp actually writes/closes the file, and then
>> reopens it to append those three lines.
> What's also strange is that for other file-type like png or postscript, the extra statement "set output" is not necessary. That's the reason why I didn't do it until now for pslatex neither

It differs. pdfcairo for example only writes to disk upon closing the
file. Before it is just size zero.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web