#======================================================================= # Example of a simple x-y line plot. # # Copyright (c) 2003 by Johnny Lin. For licensing, distribution # conditions, contact information, and additional documentation see # the URL http://www.johnny-lin.com/pylib.html#license. #======================================================================= #- Import modules: import Numeric as N import vcs #- Data: A sine curve: x = N.arange(17)*N.pi/8. y = N.sin(x) #- Initialize canvas: v = vcs.init() #- Plot using default xvsy graphics method and template (with plot # title "Sine Curve"): v.xvsy(x, y, 'default', 'default', name='Sine Curve') #====== end of file ======