From 6d599c31bf556d41930c5a1043f4bcb37dad050a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 6 Dec 2013 11:13:15 +0100 Subject: [PATCH] fix graph watermark, change linear spectrogram id --- timeside/grapher/core.py | 2 +- timeside/grapher/spectrogram_lin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/timeside/grapher/core.py b/timeside/grapher/core.py index 17da285..550a513 100644 --- a/timeside/grapher/core.py +++ b/timeside/grapher/core.py @@ -163,7 +163,7 @@ class Grapher(Processor): return self.image def watermark(self, text, font=None, color=(255, 255, 255), opacity=.6, margin=(5,5)): - self.image = im_watermark(text, text, color=color, opacity=opacity, margin=margin) + self.image = im_watermark(self.image, text, color=color, opacity=opacity, margin=margin) def draw_peaks(self, x, peaks, line_color): """Draw 2 peaks at x""" diff --git a/timeside/grapher/spectrogram_lin.py b/timeside/grapher/spectrogram_lin.py index 04df721..5ae98fd 100644 --- a/timeside/grapher/spectrogram_lin.py +++ b/timeside/grapher/spectrogram_lin.py @@ -38,7 +38,7 @@ class SpectrogramLinear(SpectrogramLog): @staticmethod @interfacedoc def id(): - return "spectrogram_linear" + return "spectrogram_lin" @staticmethod @interfacedoc -- 2.39.5