From d584510f862c11c5803aa289d1ae72667e912a9b Mon Sep 17 00:00:00 2001 From: realpython-bot <42617967+realpython-bot@users.noreply.github.com> Date: Tue, 6 Oct 2026 06:13:41 +0000 Subject: [PATCH] Sync storing-images with the maintenance update of Three Ways of Storing and Accessing Lots of Images in Python - Use the seaborn-v0_8-whitegrid Matplotlib style (seaborn-whitegrid was removed) - Add requirements.txt pinned to the article's tested versions Co-Authored-By: Claude Opus 5.5 --- storing-images/requirements.txt | 5 +++++ storing-images/storing_images.ipynb | 2 +- storing-images/storing_images.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 storing-images/requirements.txt diff --git a/storing-images/requirements.txt b/storing-images/requirements.txt new file mode 100644 index 0000000000..b8902d84ea --- /dev/null +++ b/storing-images/requirements.txt @@ -0,0 +1,5 @@ +h5py==3.16.0 +lmdb==3.0.0 +matplotlib==3.11.2 +numpy==2.5.3 +Pillow==12.3.0 diff --git a/storing-images/storing_images.ipynb b/storing-images/storing_images.ipynb index d24aa60b33..b797b3671c 100644 --- a/storing-images/storing_images.ipynb +++ b/storing-images/storing_images.ipynb @@ -441,7 +441,7 @@ " x_label x axis label\n", " y_label y axis label\n", " \"\"\"\n", - " plt.style.use(\"seaborn-whitegrid\")\n", + " plt.style.use(\"seaborn-v0_8-whitegrid\")\n", " plt.figure(figsize=(10, 7))\n", "\n", " if len(y_data) != len(legend_labels):\n", diff --git a/storing-images/storing_images.py b/storing-images/storing_images.py index b966655f8a..166f1044f7 100644 --- a/storing-images/storing_images.py +++ b/storing-images/storing_images.py @@ -278,7 +278,7 @@ def plot_with_legend( x_label x axis label y_label y axis label """ - plt.style.use("seaborn-whitegrid") + plt.style.use("seaborn-v0_8-whitegrid") plt.figure(figsize=(10, 7)) if len(y_data) != len(legend_labels):