Emre Aydın wrote:
> hi. i've just started using Gnuplot-py but i've a very simple problem.
>
> i use the exact code in the demo.py file which returns as this..
>
>>>> import Gnuplot
>>>> g=Gnuplot.Gnuplot()
>>>> g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]])
>>>> Warning: empty x range [0:0], adjusting to [-1:1]
> Warning: empty y range [1.1:1.1], adjusting to [1.089:1.111]
>
> which shows a Gnuplot window but only with one dot at [0,1.1]
> it brings up the same error when a run demo.py
>
> can anyone help?
It works for me.
- Are you sure you only typed those three lines into Python? Could it
be that you set the xrange and/or yrange in an earlier command?
- What platform are you using? What versions of Python and gnuplot?
- What is the result with debugging output turned on?:
import Gnuplot
g = Gnuplot.Gnuplot(debug=1)
g.plot([[0,1.1], [1,5.8], [2,3.3], [3,4.2]])
Michael
|