MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / set_scale

Method set_scale

DSView/pv/view/spectrumtrace.cpp:182–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void SpectrumTrace::set_scale(double scale)
183{
184 _scale = max(min(scale, 1.0), 100.0/_spectrum_stack->get_sample_num());
185
186 _view->set_update(_viewport, true);
187 _view->update();
188}
189
190double SpectrumTrace::get_scale()
191{

Callers

nothing calls this directly

Calls 3

set_updateMethod · 0.80
get_sample_numMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected