from visual import * from visual.text import * # http://linuxgazette.net/144/john.html #1 draw 3 axis. xaxis = arrow(pos=(0,0,0), axis=(5,0,0), shaftwidth=0.01, color=color.red) yaxis = arrow(pos=(0,0,0), axis=(0,5,0), shaftwidth=0.01, color=color.green) zyaxis = arrow(pos=(0,0,0), axis=(0,0,5), shaftwidth=0.01, color=color.blue) # Work only for capital letters. It will print * for other letters xtex = text(pos=(5,0,0), string='X', color=color.red, height=0.4, width=0.3, justify='center') ytex = text(pos=(0,5,0), string='Y', color=color.green, height=0.4, width=0.3, justify='center') ztex = text(pos=(0,0,5), string='Z', color=color.blue, height=0.4, width=0.3, justify='center')