Skip to content

Colorbar not aligning with custom layout #297

@ybmy001

Description

@ybmy001

cmap='managua' not exists, which listed in https://ultraplot.readthedocs.io/en/latest/colormaps.html

# bug 1
import ultraplot as uplt
import numpy as np

data = np.arange(9).reshape(3, 3)
fig, ax = uplt.subplots()
img = ax.pcolormesh(data, cmap='managua')  # ValueError: Invalid colormap, ...
ax.colorbar(img, loc='r')
fig.savefig(r"D:\bug_managua.png", dpi=500)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions