Vector
Main

3D vector axis


Contents

Graph 3D Vectors Axis

The important thing is the vector data is in the form {$ x\;y\;\Delta x\; \Delta y $} or in other words, the starting point and then the offset. This is not the way arrows work when entered with 'to.'

unset y format
unset border
unset grid
unset xyplane
set xrange[-1:3]  
set yrange[-1:3]  
set zrange[-1:3] 
set xzeroaxis lt 1  
set yzeroaxis lt 1  
set zzeroaxis lt 1 
set ytics axis nomirror (1,2,3)
set xtics axis nomirror (1,2,3)
set ztics axis (1,2,3)
set view 40,130, equal xyz 
set xyplane at 0
set key samplen 4
set title "3D Vectors with Central Axes"
unset border
unset hidden3d
$va<<EOD
0 0 0 0 2 1 
EOD
$vb<<EOD
0 0 0 2 2 0
EOD
$vc<<EOD
0 0 1 0 2 0
EOD
$vd<<EOD
0 2 0 2 0 0
EOD
$ve<<EOD
0 2 0 0 0 1
EOD
$vf<<EOD
2 0 0 0 2 0
EOD
splot $va with vectors lt 2 lw 3 t '(0,2,1)', \
         $vb with vectors lt 6 lw 3 t '(2,2,0)', \
         $vc with vectors nohead lt 1 dt 3 lw 1 t '', \
         $vd with vectors nohead lt 1 dt 3 lw 1 t '', \
         $ve with vectors nohead lt 1 dt 3 lw 1 t '', \
         $vf with vectors nohead lt 1 dt 3 lw 1 t ''


Sources:

Darth Kule. Produced by GNUPLOT 4.4 patchlevel 0, background spectrum based on http://commons.wikimedia.org/wiki/File:Linear_visible_spectrum.svg Dedicated to the public domain by the author.

Williams, Thomas. Colin Kelley. Gnuplot Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley. Many machine generated graphs have been manually enhanced by Laurence Eighner Hexamer.

Recommended:

Categories: Gnuplot Recipies

Tags:


edit

This is a student's notebook. I am not responsible if you copy it for homework, and it turns out to be wrong.

Backlinks

This page is GnuplotRecipe6