|
From: Christoph B. <us...@be...> - 2013-04-24 19:52:45
|
Am 19.04.2013 20:56, schrieb Ethan A Merritt: > On Thursday, April 18, 2013 11:26:31 pm Christoph Bersch wrote: >> >> Yes, I saw this, but didn't know if this information was supposed to be >> transparent to the terminal drivers. > > The word "transparent" has unfortunately become ambiguous in > [American] English. I don't know whether you mean "supposed to be > easily inspected by terminal drivers" or "supposed to be invisible > to terminal drivers". I didn't know, if this information was supposed to be easily inspected by terminal drivers. > I think it is preferable to have the core > code do the clipping so that the result is not terminal-dependent. Yes, I agree, although additionally allowing terminal-dependent clipping would give better results in some cases (e.g. proper clipping of line ends). I just submitted a patch for improved polygon clipping in the core code to sf http://sourceforge.net/p/gnuplot/bugs/1237/ > > I'm OK with the idea of adding a TBOOLEAN clip property for "set object". I would like to see this. Another point related to clipping is different handling of the border of a clipped rectangles vs clipped polygon: reset set lmargin at screen 0.5 set xrange[0:2] set yrange[0:2.5] set macro obj_style = 'fillstyle empty border lc rgb ''red'' lw 5' set object rectangle from first -1,1 to 1,0.5 @obj_style set object polygon from first -1,1.5 to 1,1.5 to 1,2 to -1,2 @obj_style set object 2 @obj_style plot x Christoph |