Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.py
/ _polygon_area
Function
_polygon_area
plotly/figure_factory/_ternary_contour.py:228–229 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
226
227
228
def
_polygon_area(x, y):
229
return
0.5 * np.abs(np.dot(x, np.roll(y, 1)) - np.dot(y, np.roll(x, 1)))
230
231
232
def
_colors(ncontours, colormap=None):
Callers
1
_extract_contours
Function · 0.85
Calls
1
roll
Method · 0.80
Tested by
no test coverage detected