On 2021-08-10 at 17:57:35 -0500, Luis Mochan wrote:
> Hi,
>
> I'm having some trouble with PDL::Graphics::Gnuplot, which is behaving
> strangely lately. Consider:
>
> mochan@yapaque:~$ pdl
> perlDL shell v1.357
> ...
> pdl> use PDL::Graphics::Gnuplot
> pdl> $x=zeroes(50)->xlinvals(0, 7)
> pdl> $w=gpwin("pdfcairo", output=>"rem.pdf");
> pdl> $w->plot(with=>lines,$x,$x->sin)
> pdl> $w->close
> pdl> quit
> mochan@yapaque:~$ file rem.pdf
> rem.pdf: empty
>
> So I try to plot into a pdf file, but the file is empty.
>
> Any advice?
Hello,
I have created a patch at
<https://github.com/PDLPorters/PDL-Graphics-Gnuplot/pull/76> that you
can try.
Technical information is in the commit message, but basically the
pdfcairo terminal behaves different from other terminal types and
Gnuplot needs to exit gracefully to write PDF files properly.
Cheers,
- Zaki Mughal
>
> Best regards,
> Luis
>
>
> --
>
> o
> W. Luis Mochán, | tel:(52)(777)329-1734 /<(*)
> Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\
> Av. Universidad s/n CP 62210 | (*)/\/ \
> Cuernavaca, Morelos, México | [email protected] /\_/\__/
> GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
>
>
> _______________________________________________
> pdl-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pdl-devel
_______________________________________________
pdl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-devel