def update_properties(self, val):
        super().update_properties(val)
        if val.bb and self.size or val.size and self.bb:
            l,t,r,b = self.bb.split(',')
            w,h = self.size.split(',')
            self.scalex = r/w
            self.scaley = b/h
dataset/ETHPy150Open tailhook/pyzza/examples/graph/types.py/Graph.update_properties/original