Sets a log10 y-scale # Note `set_log_y(true)` must be called before adding curves.
(&mut self, log: bool)
| 899 | /// |
| 900 | /// `set_log_y(true)` must be called before adding curves. |
| 901 | pub fn set_log_y(&mut self, log: bool) -> &mut Self { |
| 902 | if log { |
| 903 | self.buffer.push_str("plt.gca().set_yscale('log')\n"); |
| 904 | } else { |
| 905 | self.buffer.push_str("plt.gca().set_yscale('linear')\n"); |
| 906 | } |
| 907 | self |
| 908 | } |
| 909 | |
| 910 | /// Sets the label for the x-axis |
| 911 | pub fn set_label_x(&mut self, label: &str) -> &mut Self { |
no outgoing calls