#!/usr/bin/python2 # from irafdao import * from zplib import * import MLab if __name__ == "__main__": if len(argv) == 2: # here we initialize the graphic surfaces # # this plots the zp surface, that is, the actual # variation of zp with position g2d = Gnuplot.Gnuplot(debug=0) g2d('set parametric') g2d('set data style lines') g2d('set hidden') g2d('set cntrparam levels 10') g2d('set contour both') # we start reading the coeficients # (btype,border,sol) = readPol2D(argv[1]) print "drawing the surface for %s polinomial of order %3d" % (btype,border,) # and we then plot them # plotSurface2D(g2d,sol,btype,border) fileName = btype + "_" + str(border) + ".ps" g2d.hardcopy(fileName,enhanced=1,color=1) raw_input("click on any key to end") else: print "wrong number of arguments passed"