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)
| 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 | """ |