Skip to content

Commit

Permalink
Fix various typing annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Dec 20, 2023
1 parent e518b31 commit b60ac5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions colour_hdri/plotting/tonemapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def plot_tonemapping_operator_image(
figure, axes = artist(**settings)

shape = image.shape
bounding_box = [0, 1, 0, 1]
bounding_box = (0.0, 1.0, 0.0, 1.0)

image = np.clip(cctf_encoding(image), 0, 1)
axes.imshow(
Expand Down Expand Up @@ -109,7 +109,9 @@ def plot_tonemapping_operator_image(
settings.update(
{
"x_label": "$log_2$ Input Luminance",
"x_ticker_locator": matplotlib.ticker.AutoMinorLocator(0.5),
"x_ticker_locator": matplotlib.ticker.AutoMinorLocator(
0.5 # pyright: ignore
),
}
)
plt.gca().set_xscale("log", basex=2)
Expand Down

0 comments on commit b60ac5d

Please sign in to comment.