MCPcopy Create free account
hub / github.com/alceal/plotlars / set_axis_references

Method set_axis_references

crates/plotlars-plotly/src/subplot_grid/shared.rs:166–171  ·  view source on GitHub ↗
(&mut self, x_axis: &str, y_axis: &str)

Source from the content-addressed store, hash-verified

164 }
165
166 pub(super) fn set_axis_references(&mut self, x_axis: &str, y_axis: &str) {
167 if let Some(obj) = self.data.as_object_mut() {
168 obj.insert("xaxis".to_string(), json!(x_axis));
169 obj.insert("yaxis".to_string(), json!(y_axis));
170 }
171 }
172
173 pub(super) fn set_domain(&mut self, domain_x: [f64; 2], domain_y: [f64; 2]) {
174 use serde_json::Map;

Callers 2

build_regularFunction · 0.80
assign_axis_referencesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected