diff --git a/plotting.py b/plotting.py
index b80d254832ab1f88c73a800a47a75053ae5a9e3e..ed8fd454e35a4e99d1095dfadc3278b901acabcc 100644
--- a/plotting.py
+++ b/plotting.py
@@ -32,11 +32,13 @@ cmap_petroff_bipolar.set_over(petroff_colors[8])
 
 
 # Matplotlib options
-plt.rcParams['figure.figsize'] = 8, 5
-plt.rcParams['figure.dpi'] = 120
-plt.rcParams['figure.constrained_layout.use'] = True
-plt.rcParams['legend.fontsize'] = 'x-small'
-plt.rcParams['legend.title_fontsize'] = 'small'
+mpl.rcParams.update({
+    'figure.figsize': (8, 5),
+    'figure.dpi': 120,
+    'figure.constrained_layout.use': True,
+    'legend.fontsize': 'x-small',
+    'legend.title_fontsize': 'small',
+})