MCPcopy Index your code
hub / github.com/plotly/plotly.py / _prepare_position

Function _prepare_position

plotly/shapeannotation.py:71–78  ·  view source on GitHub ↗
(position, prepend_inside=False)

Source from the content-addressed store, hash-verified

69
70
71def _prepare_position(position, prepend_inside=False):
72 if position is None:
73 position = "top right"
74 pos_str = position
75 position = set(position.split(" "))
76 if prepend_inside:
77 position = _add_inside_to_position(position)
78 return position, pos_str
79
80
81def annotation_params_for_line(shape_type, shape_args, position):

Callers 2

Calls 2

_add_inside_to_positionFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected