Sets the labels for the x and y axes
(&mut self, xlabel: &str, ylabel: &str)
| 1043 | |
| 1044 | /// Sets the labels for the x and y axes |
| 1045 | pub fn set_labels(&mut self, xlabel: &str, ylabel: &str) -> &mut Self { |
| 1046 | write!( |
| 1047 | &mut self.buffer, |
| 1048 | "plt.gca().set_xlabel(r'{}')\nplt.gca().set_ylabel(r'{}')\n", |
| 1049 | xlabel, ylabel |
| 1050 | ) |
| 1051 | .unwrap(); |
| 1052 | self |
| 1053 | } |
| 1054 | |
| 1055 | /// Sets the labels for the x, y, and z axes |
| 1056 | pub fn set_labels_3d(&mut self, xlabel: &str, ylabel: &str, zlabel: &str) -> &mut Self { |
no outgoing calls