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

Method set_log_y

src/plot.rs:901–908  ·  view source on GitHub ↗

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

(&mut self, log: bool)

Source from the content-addressed store, hash-verified

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 {

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