Skip to content

Commit

Permalink
Merge pull request #569 from Sjoerd1993/Do-not-revert-rcparams
Browse files Browse the repository at this point in the history
Do not revert rcparams
  • Loading branch information
cmkohnen authored Nov 14, 2023
2 parents 7f379cc + 7a335a0 commit 519811d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 519811d

Please sign in to comment.