From: Michael Haggerty <mhagger@al...>  20131024 07:57:27

[Please always CC your replies to the mailing list as well.] On 10/24/2013 09:35 AM, Tomáš Odstrčil wrote: > It is possible to do it in gnuplot, I'm using the following command (the > last line is important) > set xrange [1:5]; > set yrange [2:2]; > set style line 1 lt 2 lc rgb 'white' lw 2; > set style line 2 lt 1 lc rgb 'gray' lw 1; > set title 'title'; > set xlabel 'xlabel > set ylabel 'ylabel' > unset key > set term png transparent size 600,600 crop; > set output 'filename.png'; > set view map; > set pm3d explicit; > splot 'data.txt' with image, 'line.txt' using 1:2:(0) ls 1 with lines Ahh, I see, you are doing a "2d" line plot by doing a 3d line plot whose z values are always zero. The same trick works in Gnuplot.py: import math, numpy import Gnuplot g = Gnuplot.Gnuplot() theta = numpy.arange(math.pi, math.pi, 0.1) x = numpy.cos(theta) y = numpy.sin(theta) g.splot( Gnuplot.Func('x*x + y*y'), Gnuplot.Data(x,y, using='1:2:(0)', with_='line'), ) or you can pass the zero data to gnuplot explicitly using something like g.splot( Gnuplot.Func('x*x + y*y'), Gnuplot.Data(x,y,numpy.zeros(len(t)), with_='line'), ) Michael  Michael Haggerty mhagger@... http://softwareswirl.blogspot.com/ 