Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmyt/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ def create_cmap_overview(
if TYPE_CHECKING:
axes = cast(NDArray, axes)

for name, ax in zip(cmaps, axes, strict=False):
for name, ax in zip(cmaps, axes, strict=True):
RGBs = [get_rgb(mpl.colormaps[name])]
_axes = [ax]
if with_grayscale:
RGBs.append(to_grayscale(RGBs[0]))
_axes.append(ax.inset_axes([0, 1, 0.999999, 0.3]))

for rgb, _ax in zip(RGBs, _axes, strict=False):
for rgb, _ax in zip(RGBs, _axes, strict=True):
_ax.axis("off")
show_cmap(_ax, rgb)
ax.text(
Expand Down
Loading