Vector
Main

Gnuplot Worksheet


Do not copy from worksheets. They are scratch pads that may never have been right

Gnuplot scratchpad

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:

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

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 GnuplotWorksheet