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

Method __init__

plotly/figure_factory/_quiver.py:130–163  ·  view source on GitHub ↗
(self, x, y, u, v, scale, arrow_scale, angle, scaleratio=1, **kwargs)

Source from the content-addressed store, hash-verified

128 """
129
130 def __init__(self, x, y, u, v, scale, arrow_scale, angle, scaleratio=1, **kwargs):
131 try:
132 x = utils.flatten(x)
133 except exceptions.PlotlyError:
134 pass
135
136 try:
137 y = utils.flatten(y)
138 except exceptions.PlotlyError:
139 pass
140
141 try:
142 u = utils.flatten(u)
143 except exceptions.PlotlyError:
144 pass
145
146 try:
147 v = utils.flatten(v)
148 except exceptions.PlotlyError:
149 pass
150
151 self.x = x
152 self.y = y
153 self.u = u
154 self.v = v
155 self.scale = scale
156 self.scaleratio = scaleratio
157 self.arrow_scale = arrow_scale
158 self.angle = angle
159 self.end_x = []
160 self.end_y = []
161 self.scale_uv()
162 barb_x, barb_y = self.get_barbs()
163 arrow_x, arrow_y = self.get_quiver_arrows()
164
165 def scale_uv(self):
166 """

Callers

nothing calls this directly

Calls 3

scale_uvMethod · 0.95
get_barbsMethod · 0.95
get_quiver_arrowsMethod · 0.95

Tested by

no test coverage detected