Adds grid and labels
(&mut self, xlabel: &str, ylabel: &str)
| 306 | |
| 307 | /// Adds grid and labels |
| 308 | pub fn grid_and_labels(&mut self, xlabel: &str, ylabel: &str) -> &mut Self { |
| 309 | write!( |
| 310 | &mut self.buffer, |
| 311 | "plt.gca().set_axisbelow(True)\n\ |
| 312 | plt.grid(linestyle='--',color='grey',zorder=-1000)\n\ |
| 313 | plt.gca().set_xlabel(r'{}')\n\ |
| 314 | plt.gca().set_ylabel(r'{}')\n", |
| 315 | xlabel, ylabel |
| 316 | ) |
| 317 | .unwrap(); |
| 318 | self |
| 319 | } |
| 320 | |
| 321 | /// Adds grid, labels, and legend |
| 322 | pub fn grid_labels_legend(&mut self, xlabel: &str, ylabel: &str) -> &mut Self { |
no outgoing calls