From: Michael <mfmncc1701e@pr...> - 2006-06-18 23:16:42
I want to create graphs for my homework assignment. I have vectors in
component form (ex. <0,1,0>). I want to show 3D vectors by themselves,
but I can't figure out how to do that. I tried looking at
arrowstyle.dem, but I don't understand how it works.
This is what I can do:
gnuplot> set arrow from 0,0,0 to 1,0,0
gnuplot> splot x
Now I can see the vector that I want, but the only way I can show it is
by graphing an arbitrary function, which is not what I want.
Also, the axes are shown at the sides of the graph instead of at the
1) How can I show my vector(s) alone?
2) How do I make the axes show as the X-,Y-, and Z-axes (instead of
showing at the edges of the graph)?
> Also, the axes are shown at the sides of the graph instead of at the
That's on purpose. Axes in the middle of the drawable region are
generally a bad idea if a automaton is to draw in that region. It takes
a human to tick and label an axis in the middle of the graph, and avoid
getting either unreadable payload data or unreadable ticks.
> My questions:
> 1) How can I show my vector(s) alone?
By plotting an entirely out-of-range function:
set zrange [-1:1]
Or, if you updated beyond version 4.0, by doing a 3D 'with vectors' plot.