We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0960e0f commit cb069cfCopy full SHA for cb069cf
pymove/utils/visual.py
@@ -234,10 +234,10 @@ def cmap_hex_color(cmap: ListedColormap, i: int) -> Text:
234
>>> from pymove.utils.visual import cmap_hex_color
235
>>> # import matplotlib.pyplot as plt
236
>>> # jet = plt.get_cmap('jet') // This comand generates a Linear Segmented Colormap
237
- >>> print(cmap_hex_color(jet,0), type(cmap_hex_color(jet,0)))
238
- '#000080' <class 'str'>
239
- >>> print(cmap_hex_color(jet,1), type(cmap_hex_color(jet,1)))
240
- '#000084' <class 'str'>
+ >>> print(cmap_hex_color(jet,0))
+ '#000080'
+ >>> print(cmap_hex_color(jet,1))
+ '#000084'
241
"""
242
return rgb2hex(cmap(i))
243
0 commit comments