diff --git a/tests/tests_pytest/plot.py b/tests/tests_pytest/plot.py
index f68ad77b817b253b111d44ed9cadce983c300760..8a1447d277776dc83fd7c61be3897af9d881a060 100644
--- a/tests/tests_pytest/plot.py
+++ b/tests/tests_pytest/plot.py
@@ -25,7 +25,7 @@ matplotlib.rcParams['font.family'] = 'Times New Roman'
 matplotlib.rcParams['mathtext.default'] = 'regular'
 import matplotlib.pyplot as plt
 import matplotlib.patches as mpatches
-from ticks_and_grid import ticks_and_grid
+from tests.tests_pytest.ticks_and_grid import ticks_and_grid
 
 
 # Function to compute standard deviation that is not strongly affected by outliers