Draws arrows (quiver plot) given matrices From [Matplotlib's documentation](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.quiver.html): xx, yy -- 2D arrays. The x and y coordinates of the arrow locations. uu, vv -- 2D arrays. The x and y direction components of the arrow vectors.
(&mut self, xx: &'a T, yy: &'a T, uu: &'a T, vv: &'a T)
| 104 | /// * xx, yy -- 2D arrays. The x and y coordinates of the arrow locations. |
| 105 | /// * uu, vv -- 2D arrays. The x and y direction components of the arrow vectors. |
| 106 | pub fn draw_arrows<'a, T, U>(&mut self, xx: &'a T, yy: &'a T, uu: &'a T, vv: &'a T) |
| 107 | where |
| 108 | T: AsMatrix<'a, U>, |
| 109 | U: 'a + std::fmt::Display + Num, |
| 110 | { |
| 111 | matrix_to_array(&mut self.buffer, "xx", xx); |
| 112 | matrix_to_array(&mut self.buffer, "yy", yy); |
| 113 | matrix_to_array(&mut self.buffer, "uu", uu); |
| 114 | matrix_to_array(&mut self.buffer, "vv", vv); |
| 115 | let opt = self.options_quiver(); |
| 116 | write!(&mut self.buffer, "plt.quiver(xx,yy,uu,vv{})\n", &opt).unwrap(); |
| 117 | } |
| 118 | |
| 119 | /// Draws arrows (quiver plot) given vectors |
| 120 | /// |