diff --git a/src/View/Results/CustomPlot/Plot.py b/src/View/Results/CustomPlot/Plot.py
index 6c6f2ec83b8fd5a9b40709cc516b934fca2120cd..6bfe6aba4edaf1b688b280143b1b901e3a8d018c 100644
--- a/src/View/Results/CustomPlot/Plot.py
+++ b/src/View/Results/CustomPlot/Plot.py
@@ -95,7 +95,7 @@ class CustomPlot(PamhyrPlot):
             )
             self._axes[axes] = ax_new
 
-        if self._x is "kp":
+        if self._x == "kp":
             results = self.data
             reach = results.river.reach(self._reach)
             kp = reach.geometry.get_kp()
@@ -130,7 +130,6 @@ class CustomPlot(PamhyrPlot):
                     )
                 )
 
-
                 meter_axes.set_ylim(
                     bottom=min(0, min(z_min)),
                     top=max(water_z) + 1
@@ -165,7 +164,7 @@ class CustomPlot(PamhyrPlot):
                     color='r',
                 )
 
-        elif self._x is "time":
+        elif self._x == "time":
             if "elevation" in self._y:
                 logging.info("TODO: time/elevation")
             if "water_elevation" in self._y: