MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / setLogScale

Method setLogScale

src/openms_gui/source/VISUAL/AxisWidget.cpp:106–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void AxisWidget::setLogScale(bool is_log)
107 {
108 if (is_log_ != is_log)
109 {
110 is_log_ = is_log;
111
112 if (is_log_)
113 {
114 setAxisBounds(min_, max_);
115 }
116 else
117 {
118 setAxisBounds(log2linear(min_), log2linear(max_));
119 }
120 update();
121 }
122 }
123
124 bool AxisWidget::isLogScale() const
125 {

Callers 1

recalculateAxes_Method · 0.80

Calls 1

log2linearFunction · 0.85

Tested by

no test coverage detected