Draws arc (2D only) # Input `xc`, `yc` -- center coordinates `r` -- radius `ini_angle`, `fin_angle` -- arc angles in degrees (counter-clockwise)
(&mut self, xc: T, yc: T, r: T, ini_angle: T, fin_angle: T)
| 218 | /// * `r` -- radius |
| 219 | /// * `ini_angle`, `fin_angle` -- arc angles in degrees (counter-clockwise) |
| 220 | pub fn draw_arc<T>(&mut self, xc: T, yc: T, r: T, ini_angle: T, fin_angle: T) |
| 221 | where |
| 222 | T: std::fmt::Display + Num, |
| 223 | { |
| 224 | let opt = self.options_shared(); |
| 225 | write!( |
| 226 | &mut self.buffer, |
| 227 | "p=pat.Arc(({},{}),2*{},2*{},theta1={},theta2={},angle=0{})\n\ |
| 228 | plt.gca().add_patch(p)\n", |
| 229 | xc, yc, r, r, ini_angle, fin_angle, &opt |
| 230 | ) |
| 231 | .unwrap(); |
| 232 | } |
| 233 | |
| 234 | /// Draws arrow (2D only) |
| 235 | /// |