def make_plot(self):
args = self.args<EOL>inmin = self.timeseries[<NUM_LIT:0>].min().value<EOL>if inmin == self.timeseries[<NUM_LIT:0>].max().value:<EOL><INDENT>if not self.got_error:<EOL><INDENT>self.log(<NUM_LIT:0>, '<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(inmin))<EOL><DEDENT>self.got_error = True<EOL><DEDENT>else:<EOL><INDENT>specgram = self.get_spectrogram()<EOL>if specgram is not None:  <EOL><INDENT>if args.norm:<EOL><INDENT>specgram = specgram.ratio(args.norm)<EOL><DEDENT>self.result = specgram<EOL>if not args.ymin:<EOL><INDENT>args.ymin = <NUM_LIT:1>/args.secpfft if args.yscale == '<STR_LIT>' else <NUM_LIT:0><EOL><DEDENT>norm = '<STR_LIT>' if args.color_scale == '<STR_LIT>' else None<EOL>return specgram.plot(figsize=self.figsize, dpi=self.dpi,<EOL>norm=norm, cmap=args.cmap)<EOL><DEDENT><DEDENT>
Generate the plot from time series and arguments