Lines Matching refs:scale
2083 def __init__(self, scale, subrange, region_attributes, dp): argument
2084 self.scale = scale
2092 return int(round((x - self.subrange.x.lo) * self.scale.x, self.pdp.x))
2095 return int(round((y - self.subrange.y.lo) * self.scale.y, self.pdp.y))
2098 return round((round(px, 0) / self.scale.x), self.dp.x) + self.subrange.x.lo
2101 return round((round(py, 0) / self.scale.y), self.dp.y) + self.subrange.y.lo
2119 def ToPDP(self, dp, scale): argument
2127 x = math.log10((10 ** dp) * scale)
2136 x = self.ToPDP(self.dp.x, self.scale.x)
2137 y = self.ToPDP(self.dp.y, self.scale.y)
2221 scale = self.GetScaleForRange(subrange)
2223 self.attrs = GraphAttributes(scale, subrange, region_attributes, collection.dp)
2320 return (self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect)
2328 self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect = self.back_state.pop()
2339 …self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect = self.forward_state.po…
2397 self.attrs.scale.x = self.GetScaleForRangeX(self.attrs.subrange.x)