(self, *viewbox)
Set the axes with (x0, y0, x1, y1).
Set the axes with (x0, y0, x1, y1).
Set the axes with ( x0 y0 x1 y1 ) .
def axes(self, *viewbox):
        """Set the axes with (x0, y0, x1, y1)."""
        if len(viewbox) == 1:
            viewbox = viewbox[0]
        x0, y0, x1, y1 = viewbox
        px0, py0, px1, py1 = self.viewbox
        if x0 is None:
            x0 = px0
        if x1 is None:
            x1 = px1
        if y0 is None:
            y0 = py0
        if y1 is None:
            y1 = py1
        self.viewbox = (x0, y0, x1, y1)
def axes ( self , * viewbox ) : if len ( viewbox ) == 1 : viewbox = viewbox [ 0 ] x0 , y0 , x1 , y1 = viewbox px0 , py0 , px1 , py1 = self . viewbox if x0 is None : x0 = px0 if x1 is None : x1 = px1 if y0 is None : y0 = py0 if y1 is None : y1 = py1 self . viewbox = ( x0 , y0 , x1 , y1 )