Menu

#1742 Vector does not plot correctly in splot.

None
closed-invalid
nobody
2016-03-01
2016-02-21
Anonymous
No

contact: rlnaff@gmail.com

show version long: see gnuplot.version attachment
short answer: Version 5.0 patchlevel 2 last modified 2015-12-24

terminal driver: set terminal postscript font "Helvetica" lw 2 color colortext

operating system: from uname -a:
Linux linuxmint 3.2.0-83-generic #120-Ubuntu SMP Wed Apr 29 15:37:05 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

operating system: from /proc/version:
Linux version 3.2.0-83-generic (buildd@comet) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #120-Ubuntu SMP Wed Apr 29 15:37:05 UTC 2015

operating system: cat /etc/lsb-release:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"

Description of problem:
Splot is not plotting a vector length properly. I am attempting to plot a vector in two segments. The first segment is from (0.0 0.0 0.0) to (0.63960 0.63960 0.42640). (This segment will be largely obscured by a 3D solid that will be plotting over it. For simplicity, I have deleted that part of the plot.) The second segment is from (0.63960 0.63960 0.42640) to (0.79950 0.79950 0.53300). (This segment will appear outside (on top of) the 3D solid.) The second segment is 1/4 the length of the first segment. Additionally, a label is plotted at (1.09950 1.09950 0.83300) using the symbol "x'". The symbol location is even farther along the approximate vector axis from the origin. Attached please find postcript file "ellipsoid_plot.ps;" on this plot, one see that the second segment (black) is even longer that the first (violet), and that the label is plotted on top the second segment. The first segment appears to have been plotted in the proper locations (when the 3D solid is plotted, it appears to end withing the solid). Changing the view (35,315,0.80000,1.80000) does not appear to alter these features. The length of the second segment appears to be contaminated; its length can be decreased to zero and the plot will yet show some finite length for the second vector (that is, the second segment can be set to go from (0.63960 0.63960 0.42640) to (0.63960 0.63960 0.42640). Also, eliminated the first segment from the plot does not change the problem; the second segment is still too long.

Attachments:
gnuplot file: gp.txt
Data files: vectors.dat, extensions.dat, labels.dat
postscript file: ellipsoid_plot.ps

1 Attachments

Discussion

  • Karl Ratzsch

    Karl Ratzsch - 2016-02-21

    You've gotten the "using" syntax for "with vectors" wrong. You have to give the origin&length of the vector, not two endpoints. Use

      plot ... using 1:2:3($4-$1):($5-$2):($6-$3) with vectors
    
     
  • Karl Ratzsch

    Karl Ratzsch - 2016-02-21
    • status: open --> open-not-a-bug
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2016-02-26
    • status: open-not-a-bug --> open-invalid
     
  • Ethan Merritt

    Ethan Merritt - 2016-03-01
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.