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

Method blank_pos

plotly/figure_factory/_streamline.py:170–174  ·  view source on GitHub ↗

Set up positions for trajectories to be used with rk4 function.

(self, xi, yi)

Source from the content-addressed store, hash-verified

168 arrows_x, arrows_y = self.get_streamline_arrows()
169
170 def blank_pos(self, xi, yi):
171 """
172 Set up positions for trajectories to be used with rk4 function.
173 """
174 return (int((xi / self.spacing_x) + 0.5), int((yi / self.spacing_y) + 0.5))
175
176 def value_at(self, a, xi, yi):
177 """

Callers 2

rk4Method · 0.95
rk4_integrateMethod · 0.95

Calls 1

intFunction · 0.85

Tested by

no test coverage detected