def _get_x_value_for(self, local_value):
        local_value = max(0, min(1.0, local_value))
        local_value *= self.width() - self._legend_border
        return local_value
Converts a value from 0 to 1 to a value from 0 .. canvas width
dataset/ETHPy150Open tobspr/RenderPipeline/toolkit/day_time_editor/curve_widget.py/CurveWidget._get_x_value_for