Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.py
/ _argmax
Function
_argmax
plotly/shapeannotation.py:56–57 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
54
55
56
def
_argmax(x):
57
return
sorted(enumerate(x), key=
lambda
t: t[1], reverse=True)[0][0]
58
59
60
def
_df_anno(xanchor, yanchor, x, y):
Callers
1
annotation_params_for_line
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected