def plot(self, fname=None):
plt.figure()<EOL>xy = sorted(zip(self.x, self.smooth_result))<EOL>x, y = zip(*xy)<EOL>plt.plot(x, y, '<STR_LIT:->')<EOL>plt.plot(self.x, self.y, '<STR_LIT:.>')<EOL>if fname:<EOL><INDENT>plt.savefig(fname)<EOL><DEDENT>else:<EOL><INDENT>plt.show()<EOL><DEDENT>plt.close()<EOL>
Plot the input data and resulting smooth.

Parameters
----------
fname : str, optional
    name of file to produce. If none, will show interactively.