arte/types/domainxy.py
def from_extent(cls, xmin, xmax, ymin, ymax, npoints):
        '''Build a domain from a bounding box'''

        npoints = _accept_one_or_two_elements(npoints, 'npoints')

        x = np.linspace(xmin, xmax, npoints[0])
        y = np.linspace(ymin, ymax, npoints[1])
        return cls(x, y)
Build a domain from a bounding box
Build a domain from a bounding box
Build a domain from a bounding box
def from_extent(cls, xmin, xmax, ymin, ymax, npoints):
        npoints = _accept_one_or_two_elements(npoints, 'npoints')
        x = np.linspace(xmin, xmax, npoints[0])
        y = np.linspace(ymin, ymax, npoints[1])
        return cls(x, y)
def from_extent ( cls , xmin , xmax , ymin , ymax , npoints ) : npoints = _accept_one_or_two_elements ( npoints , 'npoints' ) x = np . linspace ( xmin , xmax , npoints [ 0 ] ) y = np . linspace ( ymin , ymax , npoints [ 1 ] ) return cls ( x , y )
Build a domain from a bounding box
Build a domain from a bounding box
'''Build a domain from a bounding box'''
cls
xmin
xmax
ymin
ymax
npoints