MCPcopy Create free account
hub / github.com/cpmech/plotpy / set_log_x

Method set_log_x

src/plot.rs:887–894  ·  view source on GitHub ↗

Sets a log10 x-scale # Note `set_log_x(true)` must be called before adding curves.

(&mut self, log: bool)

Source from the content-addressed store, hash-verified

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 ///

Callers 5

set_functions_workFunction · 0.80
test_slope_icon_exampleFunction · 0.80
test_plot_logFunction · 0.80

Calls

no outgoing calls

Tested by 5

set_functions_workFunction · 0.64
test_slope_icon_exampleFunction · 0.64
test_plot_logFunction · 0.64