You are not logged in.

#1 2013-06-27 18:20:00

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

How to use Gnuplot library in Python without X11?

Hello,
I need generate graphs in Python2 with Gnuplot. I have installed gnuplot-py and gnuplot packages.
In Python console I execute

import Gnuplot
Gnuplot.Gnuplot(debug=0, persist = 0)

After the second command the ouput is:

>>> import Gnuplot
>>> Gnuplot.Gnuplot(debug=0, persist = 0)
<Gnuplot._Gnuplot.Gnuplot instance at 0x28d2830>
>>> 
gnuplot: unable to open display ''
gnuplot: X11 aborted.

I can see in htop 'gnuplot' and 'gnuplot_x11' processes exists until I close the python console.

While installing gnuplot package I've noticed the package has X11 dependencies. My machine is headless; can I compile Gnuplot without X11 support? Or is there anything I do wrong?

Thanks

Offline

Board footer

Powered by FluxBB