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


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

Re: splot of vector doesn't appear correct.

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: splot of vector doesn't appear correct.
Date 2016-02-21 20:24 +0100
Organization solani.org
Message-ID <nad2si$j0o$1@solani.org> (permalink)
References <3d96a22e-351b-4354-ab01-b60554f55f5d@googlegroups.com>

Show all headers | View raw


Am 20.02.2016 um 19:21 schrieb rlnaff@gmail.com:
> Hello: I am attempting to plot a vector in two segment.  The
> first segment is from (0.00000 0.00000 0.00000) to (0.63960
> 0.63960 0.42640).  The second segment is from (0.63960 0.63960
> 0.42640) to (0.70356 0.70356 0.46904).  A label, x', is to be
> placed beyond the second segment at (1.00356 1.00356 0.76904).
> When I plot these segments with a view of 35, 225 degrees (set
> view 35,225,0.80000,1.80000), the label x' appears to be sitting
> on the second segment at about 1/3 the distance from the end. The
> label appears to be situated correctly; the second segment
> appears to be too long ...

I think you've misunderstood the "using" syntax of "with vectors".
The second triplet of numbers are the vectors lengths, not the
absolute coordinates of it's endpoint. Right?

Funnily, after stripping you script of all unnecessary decoration,
it does show a small weirdness: Why do we get a colourbar next to
this plot? It goes away after removing the "arrowstyle"s. (gp5.01)

$vectors << EOD
      0.00000      0.00000      0.00000      0.63960      0.63960
   0.42640
EOD

$extensions << EOD
      0.63960      0.63960      0.42640      0.70356      0.70356
   0.46904
EOD

$labels << EOD
      1.00356      1.00356      0.76904 x'
EOD


splot $vectors using 1:2:3:4:5:6 with vectors arrowstyle 2, \
      $extensions using 1:2:3:4:5:6 with vectors arrowstyle 1, \
      $labels using 1:2:3:4 with labels

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


Thread

splot of vector doesn't appear correct. rlnaff@gmail.com - 2016-02-20 10:21 -0800
  Re: splot of vector doesn't appear correct. Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-21 20:24 +0100

csiph-web