diff --git a/devtools/view/plot_diff_int.py b/devtools/view/plot_diff_int.py
index 2d6fdbb7c7eda73315d6cc9a65ce3f4daa0e2bd4..3a019d12e93fd2696c6151fbebc2778a4ffd2134 100755
--- a/devtools/view/plot_diff_int.py
+++ b/devtools/view/plot_diff_int.py
@@ -17,14 +17,18 @@ def plot_diff_int(filename1, filename2):
            / (np.abs(intensity_ref.array()) + np.abs(intensity_other.array()))
     if data.max() == 0:
         exit("Both data sets are equal, there is nothing to plot.")
+    vmax = data.max()
+    vmin = data.min()
+    if vmin <=0:
+        vmin = vmax / 1e6
     rank = intensity_ref.rank()
     if rank == 2:
         pid.plot_raw_data_2d(data, [
-            intensity_ref.getXmin()/ba.deg,
-            intensity_ref.getXmax()/ba.deg,
-            intensity_ref.getYmin()/ba.deg,
-            intensity_ref.getYmax()/ba.deg
-        ], True, data.min(), data.max())
+            intensity_ref.xMin()/ba.deg,
+            intensity_ref.xMax()/ba.deg,
+            intensity_ref.yMin()/ba.deg,
+            intensity_ref.yMax()/ba.deg
+        ], True, vmin, vmax)
     elif rank == 1:
         axis_values = np.asarray(intensity_ref.xAxis().binCenters())/ba.deg
         pid.plot_raw_data_1d(axis_values, data, log_y=False)
diff --git a/devtools/view/plot_int.py b/devtools/view/plot_int.py
index e437a896c22bf8478832336cb92afce0fe549167..9152afa32a54d3b317562a2c98f656e88ef365c2 100755
--- a/devtools/view/plot_int.py
+++ b/devtools/view/plot_int.py
@@ -55,10 +55,10 @@ def plot_int(args):
 
 def plot_int_2d(histogram, ylog, intensity_min, intensity_max):
     plot_raw_data_2d(histogram.array(), [
-        histogram.getXmin()/ba.deg,
-        histogram.getXmax()/ba.deg,
-        histogram.getYmin()/ba.deg,
-        histogram.getYmax()/ba.deg
+        histogram.xMin()/ba.deg,
+        histogram.xMax()/ba.deg,
+        histogram.yMin()/ba.deg,
+        histogram.yMax()/ba.deg
     ], ylog, intensity_min, intensity_max)