Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: An exact diagonal Date: Mon, 21 Mar 2016 11:30:14 +0100 Organization: solani.org Lines: 39 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1458556211 9829 eJwFwQUBwEAMBDBLpSvI+RX8S1gCdfYOc7jhcJujGwIUS79e/fJSq4b0nOvEptxYB1EPRD8Z/BCG (21 Mar 2016 10:30:11 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 21 Mar 2016 10:30:11 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-User-ID: eJwFwYEBwCAIA7CXRGkZ52CR/09YgkOjwgk6BhPUyuitruU9czJuIWu/abUuP8EpazPPeO8HMngR+w== In-Reply-To: Cancel-Lock: sha1:kP0lI0UIs5zDJq8uJZD2shQFEuM= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXxixFzqkI/59g4ovGCtAJH5+dkv5ovwRxrTuwv5OlsMGoKqvjtgaydewBLdYSIg== Xref: csiph.com comp.graphics.apps.gnuplot:3266 Am 19.03.2016 um 20:06 schrieb pez: > Hello. > > After alot of trials-and-errors, a possible way to get a > 300 x 300 pixels diagonal plot of 1 pixel wide is, > unreasonably enough: > > set term win size 300,301 > set margins 0,0,0,0 > unset border > unset tics > set samples 301 > set grid > plot [0:300] x lc '#ff0000' with dots title "" > > while, in addition to these incosistencies, the cross-hair > ranges are: > > x : [0.00000 , 299.012] > y : [1.00006 , 300.017] (The mouse cursor thinks it is already outside of the plot one pixel early on the right and the lower border. Mouse positions are correct. The crosshair of the wxt terminal is thinner, easier to see it there.) I'm not sure you're doing this in a way it can work unambiguously: If the borders of the pixels in your plot are at integer positions, i.e. one pixel ranges from 149.0 to 150.0, next from 150.0 to 151.0, where should a line plotted at y=150.0 appear, without antialiasing? It's 50:50, i think. However it looks like there is indeed a slight inconsistency with the windows terminal. With the wxt terminal, a size of 300x300 makes a straight diagonal without jitter.