Add surface-matplotlib config option to pypiezo.
[pypiezo.git] / pypiezo / surface.py
index 6443ea29a5e4562a760e3301239c8a102737dd22..0534613d28ed8d13a02fa57c4a1c4fa7fb82dbed 100644 (file)
@@ -209,7 +209,7 @@ def analyze_surface_position_data(
         full_output=True, maxfev=10000)
     _LOG.info('best fit parameters: %s' % (params,))
 
-    if _package_config['matplotlib']:
+    if _package_config['surface-matplotlib']:
         if not _matplotlib:
             raise _matplotlib_import_error
         figure = _matplotlib_pyplot.figure()