MCPcopy 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
228def _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
232def _colors(ncontours, colormap=None):

Callers 1

_extract_contoursFunction · 0.85

Calls 1

rollMethod · 0.80

Tested by

no test coverage detected