Skip to content

Commit

Permalink
Commitin
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeda committed Aug 7, 2024
1 parent 6537866 commit 8ec19ef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ert/gui/plottery/plots/std_dev.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import io
from typing import Any, Dict
from typing import Any, Dict, List

import matplotlib.pyplot as plt
import numpy as np
import numpy.typing as npt
import pandas as pd
from matplotlib.collections import QuadMesh
from matplotlib.figure import Figure
from mpl_toolkits.axes_grid1 import make_axes_locatable

Expand All @@ -29,7 +29,7 @@ def plot(
if layer is not None:
vmin, vmax = float("inf"), float("-inf")
axes = []
images = []
images: List[npt.NDArray[np.float64]] = []

for i, ensemble in enumerate(plot_context.ensembles(), start=1):
ax = figure.add_subplot(1, ensemble_count, i)
Expand All @@ -45,7 +45,6 @@ def plot(
ha="center",
va="center",
)
images.append(None)
else:
img = plt.imread(io.BytesIO(image_data))
images.append(img)
Expand All @@ -65,7 +64,7 @@ def plot(
figure.tight_layout()

@staticmethod
def _colorbar(mappable: QuadMesh) -> Any:
def _colorbar(mappable: Any) -> Any:
# https://joseph-long.com/writing/colorbars/
last_axes = plt.gca()
ax = mappable.axes
Expand Down

0 comments on commit 8ec19ef

Please sign in to comment.