I am typing this in textedit and load it into gnuplot later. When I do so the image is slightly off the top of the screen which means I can’t see some of it. Is there a way to shift the entirety of the imaged produced down, or start the z-axis lower on the image?
Also, how do I make either my points or my lines black? Currently the lines for my sphere are red and the points are blue.
set pointsize 2
set tics
set border
unset key
set size ratio -1
set size square
unset xzeroaxis
unset yzeroaxis
unset zzeroaxis
# linetype linewidth
set xrange[-1.2:1.2]
set yrange[-1.2:1.2]
set zrange[-1.2:1.2]
set view equal xyz
set xyplane at -1.2
set parametric
set isosamples 20
set hidden3d
set urange [0:2.0*pi]
set vrange [-pi/2:pi/2]
r=1.0;
# Parametric functions for the sphere
fx(v,u) = r*cos(v)*cos(u)
fy(v,u) = r*cos(v)*sin(u)
fz(v) = r*sin(v)
splot fx(v,u),fy(v,u),fz(v),"mypoints" u 1:2:3 w p 3
Thanks, A.
Ok, so basically there are loads of issues that need solving so here goes:
1) Don’t shift the picture down, get rid of the little tag end from the z part of the border. This makes the picture more central.
To do this:
set ticslevel 0.02) Aspect ratio is not maintained in X11 so it looks all squashed. This is spoken about here:
http://sourceforge.net/tracker/index.php?func=detail&aid=3331162&group_id=2055&atid=102055
The workaround as they say is to set the size of window that X11 outputs to to be square, to do this:
set terminal x11 size 800,8003) Note, you don’t now need:
set xyplane at -1.2(or what ever z value you want) as this is taken care of using the set ticslevel command.So now I have this:
Hope this helps people in future.