From 5388791d3a369c5df7cf1bd04ff12c9e99439a0c Mon Sep 17 00:00:00 2001 From: fruchti Date: Sun, 18 Dec 2022 14:42:21 +0100 Subject: [PATCH] Reset blending mode Seems to limit cairo to pixel graphics --- hf_sines.ipynb | 6 +++--- lib/plot.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hf_sines.ipynb b/hf_sines.ipynb index 38d31b6..bee39be 100644 --- a/hf_sines.ipynb +++ b/hf_sines.ipynb @@ -15,17 +15,17 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 2, "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": "\n\n\n\n\n\n\n", + "image/svg+xml": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "text/plain": [ "" ] }, - "execution_count": 11, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } diff --git a/lib/plot.py b/lib/plot.py index f1808a3..5ee70c5 100644 --- a/lib/plot.py +++ b/lib/plot.py @@ -179,7 +179,6 @@ class SVGPlotter(Plotter): self.context.scale(dpi / 25.4, dpi / 25.4) self.context.set_line_cap(cairo.LINE_CAP_ROUND) self.context.set_line_join(cairo.LINE_JOIN_ROUND) - self.context.set_operator(cairo.OPERATOR_MULTIPLY) super().__init__(paper, line_width, colour)