[pitivi/gtktimeline] keyframes: fix annoying warnings.
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/gtktimeline] keyframes: fix annoying warnings.
- Date: Tue, 19 May 2015 19:11:31 +0000 (UTC)
commit 8b3d288e8a174edb2e38bcb91a65f0e2439d7a51
Author: Mathieu Duponchelle <mathieu duponchelle opencreed com>
Date: Tue May 19 20:59:14 2015 +0200
keyframes: fix annoying warnings.
Summary: They were innocuous but boring
Reviewers: thiblahute
Differential Revision: http://phabricator.freedesktop.org/D187
pitivi/timeline/elements.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 10aa0b7..7fb755f 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -109,6 +109,9 @@ class KeyframeCurve(FigureCanvas, Loggable):
self.__keyframes = self.__ax.scatter([], [], marker='D', s=sizes,
c=colors, zorder=2)
+
+ # matplotlib weirdness, simply here to avoid a warning ..
+ self.__keyframes.set_picker(True)
self.__line = self.__ax.plot([], [],
linewidth=1.0, zorder=1)[0]
self.__updatePlots()
@@ -137,8 +140,9 @@ class KeyframeCurve(FigureCanvas, Loggable):
for value in values:
self.__line_xs.append(value.timestamp)
self.__line_ys.append(value.value)
- self.__ax.set_xlim(self.__line_xs[0], self.__line_xs[-1])
- self.__ax.set_ylim(0.0, 1.0)
+
+ self.__ax.set_xlim(self.__line_xs[0], self.__line_xs[-1])
+ self.__ax.set_ylim(0.0, 1.0)
arr = numpy.array((self.__line_xs, self.__line_ys))
arr = arr.transpose()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]