Lines Matching refs:scale
1651 # Switch graph scale graphics item
1674 # Switch graph graphics item contains graph title, scale, x/y-axis, and the graphed data
2075 # Graph attributes, in particular the scale and subrange that change when zooming
2079 def __init__(self, scale, subrange, region_attributes, dp):
2080 self.scale = scale
2088 return int(round((x - self.subrange.x.lo) * self.scale.x, self.pdp.x))
2091 return int(round((y - self.subrange.y.lo) * self.scale.y, self.pdp.y))
2094 return round((round(px, 0) / self.scale.x), self.dp.x) + self.subrange.x.lo
2097 return round((round(py, 0) / self.scale.y), self.dp.y) + self.subrange.y.lo
2115 def ToPDP(self, dp, scale):
2118 # scale it to get the minimum delta in pixels
2123 x = math.log10((10 ** dp) * scale)
2132 x = self.ToPDP(self.dp.x, self.scale.x)
2133 y = self.ToPDP(self.dp.y, self.scale.y)
2217 scale = self.GetScaleForRange(subrange)
2219 self.attrs = GraphAttributes(scale, subrange, region_attributes, collection.dp)
2316 return (self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect)
2324 self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect = self.back_state.pop()
2335 self.attrs.subrange, self.attrs.scale, self.selection_state, self.fwd_rect = self.forward_state.pop()
2393 self.attrs.scale.x = self.GetScaleForRangeX(self.attrs.subrange.x)