Sets axes limits
(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64, zmin: f64, zmax: f64)
| 552 | |
| 553 | /// Sets axes limits |
| 554 | pub fn set_range_3d(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64, zmin: f64, zmax: f64) -> &mut Self { |
| 555 | write!( |
| 556 | &mut self.buffer, |
| 557 | "plt.gca().set_xlim({},{})\n\ |
| 558 | plt.gca().set_ylim({},{})\n\ |
| 559 | plt.gca().set_zlim({},{})\n", |
| 560 | xmin, xmax, ymin, ymax, zmin, zmax, |
| 561 | ) |
| 562 | .unwrap(); |
| 563 | self |
| 564 | } |
| 565 | |
| 566 | /// Sets axes limits |
| 567 | pub fn set_range(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64) -> &mut Self { |
no outgoing calls