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

Method set_labels

src/plot.rs:1045–1053  ·  view source on GitHub ↗

Sets the labels for the x and y axes

(&mut self, xlabel: &str, ylabel: &str)

Source from the content-addressed store, hash-verified

1043
1044 /// Sets the labels for the x and y axes
1045 pub fn set_labels(&mut self, xlabel: &str, ylabel: &str) -> &mut Self {
1046 write!(
1047 &mut self.buffer,
1048 "plt.gca().set_xlabel(r'{}')\nplt.gca().set_ylabel(r'{}')\n",
1049 xlabel, ylabel
1050 )
1051 .unwrap();
1052 self
1053 }
1054
1055 /// Sets the labels for the x, y, and z axes
1056 pub fn set_labels_3d(&mut self, xlabel: &str, ylabel: &str, zlabel: &str) -> &mut Self {

Callers 2

set_functions_workFunction · 0.80
test_plotFunction · 0.80

Calls

no outgoing calls

Tested by 2

set_functions_workFunction · 0.64
test_plotFunction · 0.64