holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

Add support for cticks #6257

Closed ahuang11 closed 4 months ago

ahuang11 commented 4 months ago

Closes https://github.com/holoviz/holoviews/issues/5723

import numpy as np
import holoviews as hv

hv.extension("bokeh")

img = hv.Image(np.array([[0, 1], [2, 3]])).opts(
    cticks=[(1, "A"), (2, "B")], colorbar=True
)
img
image

Didn't implement for matplotlib because it already has cbar_ticks

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.48%. Comparing base (2ba3d78) to head (d72f80c). Report is 9 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6257 +/- ## ========================================== + Coverage 88.39% 88.48% +0.09% ========================================== Files 323 323 Lines 67620 67687 +67 ========================================== + Hits 59770 59896 +126 + Misses 7850 7791 -59 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.