from visual import * #scene.stereo='redcyan' # set up for colored 3D glasses # right button mouse drag spins (Mac: option key + mouse) # double button mouse drag zooms (Mac: command key + mouse) ################# This stuff makes labeled coordinate axes ################# ## ## d = 25 #adjust length of axes as needed ## r = d*.008 #thickness of axes ## ## scene.background=color.white #this makes it easier to see when projected ## scene.x=scene.y=0 ## scene.width=scene.height=800 ## scene.range=1.2*d ## ## xaxis=cylinder(pos=vector(0,0,0),axis=vector(d,0,0),radius=r) ## yaxis=cylinder(pos=vector(0,0,0),axis=vector(0,d,0),radius=r) ## zaxis=cylinder(pos=vector(0,0,0),axis=vector(0,0,d),radius=r) ## ## label(pos=xaxis.pos+xaxis.axis,text='x',box=0) ## label(pos=yaxis.pos+yaxis.axis,text='y',box=0) ## label(pos=zaxis.pos+zaxis.axis,text='z',box=0) ## ## ##############################################################################