Karim BELABAS on Tue, 26 Feb 2002 17:20:31 +0100 (MET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Plotting


On Fri, 22 Feb 2002, Bruno Rothgiesser wrote:
> I use Pari 2.1.3 Linux and I'm trying to redirect "ploth" output to a gif
> file. Here are the commands and their results:
>
> plotfile("/home/bruno/image.gif"); or plotfile("image.gif")
> %1 = 1
>
> plotterm("gif=300,250")
> %2 = 1
>
> ploth(x=0,3,x)
>  *** no X server
> (file is NOT created)
>
> plot(x=0,3,x)
> (it plots using ASCII, file is NOT created)
>
> plotterm("?")
> %3 = 1
>
> When a start X, ploth(...) works, but plotfile(...)/plotterm(...) don't.
> What's wrong?

This will only work if gp has been compiled to use the 'gnuplot' graphical
driver, whereas the above shows that your binary uses the 'X-Windows' driver
[which is the default].

(17:14) gp > ??plotterm
plotterm(term):

   sets terminal where high resolution plots go (this is currently only taken
into  account  by  the gnuplot graphical driver). [...]


You will have to either recompile gp with gnuplot support or write
to a PostScript file (psploth) then convert it to GIF format.

Cheers,

    Karim.
-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas
--
PARI/GP Home Page: http://www.parigp-home.de/