def write(self, filename=None):
self._init_filename(filename)<EOL>with utilities.openany(self.real_filename, '<STR_LIT:w>') as xvg:<EOL><INDENT>xvg.write("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>xvg.write("<STR_LIT>".format(self.names))<EOL>for xyy in self.array.T:<EOL><INDENT>xyy.tofile(xvg, sep="<STR_LIT:U+0020>", format="<STR_LIT>")  <EOL>xvg.write('<STR_LIT:\n>')<EOL><DEDENT><DEDENT>
Write array to xvg file *filename* in NXY format.

        .. Note:: Only plain files working at the moment, not compressed.