Lines Matching refs:scale
1652 # Switch graph scale graphics item
1675 # Switch graph graphics item contains graph title, scale, x/y-axis, and the graphed data
2076 # Graph attributes, in particular the scale and subrange that change when zooming
2080 def __init__(self, scale, subrange, region_attributes, dp):
2081 self.scale = scale
2089 return int(round((x - self.subrange.x.lo) * self.scale.x, self.pdp.x))
2092 return int(round((y - self.subrange.y.lo) * self.scale.y, self.pdp.y))
2095 return round((round(px, 0) / self.scale.x), self.dp.x) + self.subrange.x.lo
2098 return round((round(py, 0) / self.scale.y), self.dp.y) + self.subrange.y.lo
2116 def ToPDP(self, dp, scale):
2119 # scale it to get the minimum delta in pixels
2124 x = math.log10((10 ** dp) * scale)
2133 x = self.ToPDP(self.dp.x, self.scale.x)
2134 y = self.ToPDP(self.dp.y, self.scale.y)
2218 scale = self.GetScaleForRange(subrange)
2220 self.attrs = GraphAttributes(scale, subrange, region_attributes, collection.dp)
2317 return (self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect)
2325 self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect = self.back_state.pop()
2336 self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect = self.forward_state.pop()
2394 self.attrs.scale.x = self.GetScaleForRangeX(self.attrs.subrange.x)