Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3266

Re: An exact diagonal

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: An exact diagonal
Date 2016-03-21 11:30 +0100
Organization solani.org
Message-ID <ncoifj$9j5$1@solani.org> (permalink)
References <nck801$bl4$1@news.grnet.gr>

Show all headers | View raw


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.




Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

An exact diagonal "pez" <pez@research.net> - 2016-03-19 20:06 +0100
  Re: An exact diagonal Karl Ratzsch <mail.kfr@gmx.net> - 2016-03-21 11:30 +0100
    Re: An exact diagonal "pez" <pez@research.net> - 2016-03-24 12:34 +0100
      Re: An exact diagonal Karl Ratzsch <mail.kfr@gmx.net> - 2016-03-29 13:05 +0200
        Re: An exact diagonal "pez" <pez@research.net> - 2016-04-03 17:31 +0200

csiph-web