From: m s. <mw...@us...> - 2021-02-05 00:39:45
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>I was checking out v5.4.1 on centos 7.2 with gdlib 2.3.0. I simplified the problem down to this script.</p> <blockquote> <p>unset grid<br> set nokey<br> set clip two<br> <br> set title "GD Line Bug"<br> set size 1,1<br> set term png small truecolor butt size 500,400 <br> unset border<br> unset tics<br> set output 'mike.png'<br> set xr [0:6];</p> set yr [0:2]<br> <br> plot '-' u 1:2 notitle w l lt 1 lw 9<br> 2.0 1.0<br> 5.0 1.0<br> e<br> </blockquote> <p>I get a small, but noticeable dash at the beginning of the plotted line. The larger the linewidth the more noticeable it becomes.</p> <p>I inserted a print statement in the PNG_vector function in gd.trm. What I see are two calls to PNG_vector. The first call tries to plot a line of zero length. The second call plots the correct line. <br> </p> <p>So why is the zero length line plotted?</p> <p>MikeS</p> <p><br> </p> </body> </html> |