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

Method scale_uv

plotly/figure_factory/_quiver.py:165–174  ·  view source on GitHub ↗

Scales u and v to avoid overlap of the arrows. u and v are added to x and y to get the endpoints of the arrows so a smaller scale value will result in less overlap of arrows.

(self)

Source from the content-addressed store, hash-verified

163 arrow_x, arrow_y = self.get_quiver_arrows()
164
165 def scale_uv(self):
166 """
167 Scales u and v to avoid overlap of the arrows.
168
169 u and v are added to x and y to get the
170 endpoints of the arrows so a smaller scale value will
171 result in less overlap of arrows.
172 """
173 self.u = [i * self.scale * self.scaleratio for i in self.u]
174 self.v = [i * self.scale for i in self.v]
175
176 def get_barbs(self):
177 """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected