From 7a335a0b392fe8d7b87ec2a817d4d9436f542501 Mon Sep 17 00:00:00 2001 From: Sjoerd Stendahl Date: Mon, 13 Nov 2023 17:06:25 +0100 Subject: [PATCH] Do not revert rcparams --- src/canvas.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/canvas.py b/src/canvas.py index 622b61381..625002926 100644 --- a/src/canvas.py +++ b/src/canvas.py @@ -87,7 +87,6 @@ def __init__(self, application, style_params): style context. Bind `items` to `data.items` and all figure settings attributes to their respective values. """ - orig_params = dict(pyplot.rcParams.copy()) self._style_params = style_params pyplot.rcParams.update(self._style_params) # apply style_params GObject.Object.__init__(self, application=application, can_focus=False) @@ -119,7 +118,6 @@ def __init__(self, application, style_params): zoom_gesture = Gtk.GestureZoom.new() zoom_gesture.connect("scale-changed", self._on_zoom_gesture) self.add_controller(zoom_gesture) - dict.update(pyplot.rcParams, orig_params) # revert rcParams def get_application(self): """Get application property."""