Sets a log10 x-scale # Note `set_log_x(true)` must be called before adding curves.
(&mut self, log: bool)
| 885 | /// |
| 886 | /// `set_log_x(true)` must be called before adding curves. |
| 887 | pub fn set_log_x(&mut self, log: bool) -> &mut Self { |
| 888 | if log { |
| 889 | self.buffer.push_str("plt.gca().set_xscale('log')\n"); |
| 890 | } else { |
| 891 | self.buffer.push_str("plt.gca().set_xscale('linear')\n"); |
| 892 | } |
| 893 | self |
| 894 | } |
| 895 | |
| 896 | /// Sets a log10 y-scale |
| 897 | /// |
no outgoing calls