CoordinateBoundingBox[coords]
gives the corners {{xmin,ymin,…},{xmax,ymax,…}} of the bounding box of the region defined by coords.
CoordinateBoundingBox[coords,δ]
pads the region by δ in each direction.
CoordinateBoundingBox[coords,Scaled[s]]
pads by the scaled amount s in each direction.
CoordinateBoundingBox[coords,{p1,p2,…}]
pads by p1, p2, … in successive dimensions.
CoordinateBoundingBox[coords,{{p1min,p1max},{p2min,p2max},…}]
gives {{xmin-p1min,ymin-p2min,…},{xmax+p1max,ymax+p2max,…},…}
CoordinateBoundingBox
CoordinateBoundingBox[coords]
gives the corners {{xmin,ymin,…},{xmax,ymax,…}} of the bounding box of the region defined by coords.
CoordinateBoundingBox[coords,δ]
pads the region by δ in each direction.
CoordinateBoundingBox[coords,Scaled[s]]
pads by the scaled amount s in each direction.
CoordinateBoundingBox[coords,{p1,p2,…}]
pads by p1, p2, … in successive dimensions.
CoordinateBoundingBox[coords,{{p1min,p1max},{p2min,p2max},…}]
gives {{xmin-p1min,ymin-p2min,…},{xmax+p1max,ymax+p2max,…},…}
Details
- CoordinateBoundingBox yields a definite result if all of the coordinates are real numbers.
- In other cases, CoordinateBoundingBox carries out some simplifications.
Examples
open all close allBasic Examples (1)
Scope (4)
Find the coordinate bounding box of the vertices of a pentagon:
Find the coordinate bounding box of pairs of numbers in a ragged array:
Find the bounding box of a collection of 2D points, padding out one unit in all directions:
Pad differently in the horizontal and vertical directions:
Specify different paddings in each of the four directions:
Take 3D coordinates of different types:
Pad by a fraction of the difference in each dimension:
Pad by different amounts for different dimensions:
Generalizations & Extensions (1)
Properties & Relations (3)
Generally, CoordinateBoundingBox[coords] is the transpose of CoordinateBounds[coords]:
For coordinates given in a matrix, CoordinateBoundingBox[coords] is equivalent to Transpose[Map[MinMax,Transpose[coords]]]:
Take a collection of 500 random geo positions in France:
Find the coordinate bounding box of the latitude and longitude quantities:
The same corner points can be obtained with GeoBoundingBox, expressed as GeoPosition objects:
Draw the 500 points, the bounding box region and geo markers at the corner points:
See Also
CoordinateBounds MinMax GeoBoundingBox
Function Repository: GraphicsBounds ObjectDetectionAnchorBoxes
Related Guides
History
Text
Wolfram Research (2015), CoordinateBoundingBox, Wolfram Language function, https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html.
CMS
Wolfram Language. 2015. "CoordinateBoundingBox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html.
APA
Wolfram Language. (2015). CoordinateBoundingBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html
BibTeX
@misc{reference.wolfram_2025_coordinateboundingbox, author="Wolfram Research", title="{CoordinateBoundingBox}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html}", note=[Accessed: 18-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_coordinateboundingbox, organization={Wolfram Research}, title={CoordinateBoundingBox}, year={2015}, url={https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html}, note=[Accessed: 18-November-2025]}