Skip to content

Commit cb069cf

Browse files
authored
Update visual.py
1 parent 0960e0f commit cb069cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pymove/utils/visual.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ def cmap_hex_color(cmap: ListedColormap, i: int) -> Text:
234234
>>> from pymove.utils.visual import cmap_hex_color
235235
>>> # import matplotlib.pyplot as plt
236236
>>> # 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'>
237+
>>> print(cmap_hex_color(jet,0))
238+
'#000080'
239+
>>> print(cmap_hex_color(jet,1))
240+
'#000084'
241241
"""
242242
return rgb2hex(cmap(i))
243243

0 commit comments

Comments
 (0)