diff --git a/pyproject.toml b/pyproject.toml
index 91bc8c436cceb52793b4a6fcd88d1d4e331d0ae4..202d0d60b05ebf9a18d0a0b3d041264e832dde83 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -54,7 +54,7 @@ dependencies = [
     "scipy>=1.5.4",
     "scikit-image>=0.17.2",
     "tifffile>=2020.8.25",
-    "matplotlib>=3.3.4",
+    "matplotlib>=3.3.4,<3.6",
     "SimpleITK>=2.0.2",
     "progressbar>=2.5",
     "python-decouple>=3.4",