MCPcopy Create free account
hub / github.com/plotly/plotly.py / _get_corner_points

Function _get_corner_points

plotly/figure_factory/_gantt.py:15–26  ·  view source on GitHub ↗

Returns the corner points of a scatter rectangle :param x0: x-start :param y0: y-lower :param x1: x-end :param y1: y-upper :return: ([x], [y]), tuple of lists containing the x and y values

(x0, y0, x1, y1)

Source from the content-addressed store, hash-verified

13
14
15def _get_corner_points(x0, y0, x1, y1):
16 """
17 Returns the corner points of a scatter rectangle
18
19 :param x0: x-start
20 :param y0: y-lower
21 :param x1: x-end
22 :param y1: y-upper
23 :return: ([x], [y]), tuple of lists containing the x and y values
24 """
25
26 return ([x0, x1, x1, x0], [y0, y0, y1, y1])
27
28
29def validate_gantt(df):

Callers 3

ganttFunction · 0.85
gantt_colorscaleFunction · 0.85
gantt_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected