def make_plot(self):
plot = Plot(figsize=self.figsize, dpi=self.dpi)<EOL>ax = plot.gca(xscale='<STR_LIT>')<EOL>if self.args.legend:<EOL><INDENT>nlegargs = len(self.args.legend[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>nlegargs = <NUM_LIT:0><EOL><DEDENT>if nlegargs > <NUM_LIT:0> and nlegargs != self.n_datasets:<EOL><INDENT>warnings.warn('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>len(self.timeseries), len(self.args.legend)))<EOL>nlegargs = <NUM_LIT:0>    <EOL><DEDENT>for i in range(<NUM_LIT:0>, self.n_datasets):<EOL><INDENT>series = self.timeseries[i]<EOL>if nlegargs:<EOL><INDENT>label = self.args.legend[<NUM_LIT:0>][i]<EOL><DEDENT>else:<EOL><INDENT>label = series.channel.name<EOL><DEDENT>if self.usetex:<EOL><INDENT>label = label_to_latex(label)<EOL><DEDENT>ax.plot(series, label=label)<EOL><DEDENT>return plot<EOL>
Generate the plot from time series and arguments