Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3239
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2016-02-20 10:21 -0800 |
| Message-ID | <3d96a22e-351b-4354-ab01-b60554f55f5d@googlegroups.com> (permalink) |
| Subject | splot of vector doesn't appear correct. |
| From | 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 (but appears to start at the end of the first segment; the first segment, from other evidence, appears to end at the proper position). The program and data sets follow; any help would be appreciate. Thanks, Rich
set datafile fortran
set view 35,225,0.80000,1.80000
set view equal xyz
set linetype 1 lc rgb "dark-violet" lw 1
set linetype 2 lc rgb "#009e73" lw 1
set linetype 3 lc rgb "#56b4e9" lw 1
set linetype 4 lc rgb "#e69f00" lw 1
set linetype 5 lc rgb "#f0e442" lw 1
set linetype 6 lc rgb "#0072b2" lw 1
set linetype 7 lc rgb "#e51e10" lw 1
set linetype 8 lc rgb "black" lw 1
set linetype 9 lc rgb "gray50" lw 1
set linetype cycle 9
set xyplane at 0.0
set nokey
set tics scale 1.5 font "Helvetica,20"
set style line 1 lt 9 dt (16,4)
set style line 2 lt 9 dt (16,4,4,4)
set style line 3 lt 9 dt (16,4,4,4,4,4)
set style arrow 1 lt 8 dt solid lw 2 nohead
set style arrow 2 lt 1 dt solid lw 2 nohead
set xlabel "X, meters" font "Helvetica,20" rotate parallel offset -1,-1.5
set ylabel "Y, meters" font "Helvetica,20" rotate parallel rotate parallel offs
et -2,-2
set zlabel "Z, meters" font "Helvetica,20" rotate parallel offset 1.0
set xtics offset -1,-0.5
set ytics offset 0.5,-0.5
set ztics offset 1
set xrange [-2.64357:2.64357]
set yrange [-2.69609:2.69609]
set zrange [-2.97401:2.97401]
set terminal postscript font "Helvetica" lw 2 color colortext
set output "ellipsoid_plot.ps"
splot "vectors.dat" using 1:2:3:4:5:6 with vectors arrowstyle 2, "extensions.da
t" using 1:2:3:4:5:6 with vectors arrowstyle 1, "labels.dat" using 1:2:3:4 with
labels font "Helvetica,16,bold"
vectors.dat:
0.00000 0.00000 0.00000 0.63960 0.63960 0.42640
extensions.dat:
0.63960 0.63960 0.42640 0.70356 0.70356 0.46904
labels.dat:
1.00356 1.00356 0.76904 x'
PS: If there were a means of doing so, I would attach a postscript file of the result.
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
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