+ # Draw the endpoint square in large in the middle.
+ if v == 1:
+ psprint(ret, "gsave")
+ psprint(ret, "%g %g translate" % \
+ ((x + 0.5) * gridpitch, (h - y - 0.5) * gridpitch))
+ psprint(ret, "%g dup scale" % (float(gridpitch) / 2))
+ psprint(ret, "newpath %g %g moveto 0 -%g rlineto" % \
+ (squaresize, squaresize, squaresize * 2))
+ psprint(ret, "-%g 0 rlineto 0 %g rlineto closepath fill" % \
+ (squaresize * 2, squaresize * 2))
+ psprint(ret, "grestore")