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)
Find a bounding box for coordinates in 2 dimensions:
CoordinateBoundingBox[{{0, 1}, {1, 2}, {2, 1}, {3, 2}, {4, 0}}]CoordinateBoundingBox[{{0, 1}, {1, 2}, {2, 1}, {3, 2}, {4, 0}}, 1]Pad by 1/4 of the span in each dimension:
CoordinateBoundingBox[{{0, 1}, {1, 2}, {2, 1}, {3, 2}, {4, 0}}, Scaled[1 / 4]]Scope (4)
Find the coordinate bounding box of the vertices of a pentagon:
CirclePoints[5]CoordinateBoundingBox[%]Find the coordinate bounding box of pairs of numbers in a ragged array:
CoordinateBoundingBox[{{1, 2}, {{{{{5, 6}}}}, {9, 10}}}]Find the bounding box of a collection of 2D points, padding out one unit in all directions:
pts = {{3, -3}, {3, 3}, {-3, 3}, {-3, -3}};CoordinateBoundingBox[pts, 1]Pad differently in the horizontal and vertical directions:
CoordinateBoundingBox[pts, {1, 2}]Specify different paddings in each of the four directions:
CoordinateBoundingBox[pts, {{1, 2}, {3, 4}}]Take 3D coordinates of different types:
coords = coords = {{{0.0736388, 2.2431, -0.34123}, {-1.1412, 0.75341, 5.34125}}, {π, E, Sqrt[2]}, {Exp[2], Log[10000], Csc[(1/10)]}, {{{2, 1, 7}, {-9, -5, 7}}, {{-2, 9, 5}, {8, -9, 9}}}};CoordinateBoundingBox[coords]CoordinateBoundingBox[coords, 1]Pad by a fraction of the difference in each dimension:
CoordinateBoundingBox[coords, Scaled[.1]]Pad by different amounts for different dimensions:
CoordinateBoundingBox[coords, {.1, Scaled[.2], .3}]Pad the minima and maxima differently:
CoordinateBoundingBox[coords, {0, 1}]Pad differently in each direction:
CoordinateBoundingBox[coords, {{0, 1}, {1.5, 0.5}, {1 / 2, 1 / 3}}]Generalizations & Extensions (1)
Properties & Relations (3)
Generally, CoordinateBoundingBox[coords] is the transpose of CoordinateBounds[coords]:
coords = RandomReal[1, {10, 5}];CoordinateBoundingBox[coords]Transpose[CoordinateBounds[coords]]For coordinates given in a matrix, CoordinateBoundingBox[coords] is equivalent to Transpose[Map[MinMax,Transpose[coords]]]:
coords = RandomInteger[7, {12, 2}];CoordinateBoundingBox[coords]Transpose[Map[MinMax, Transpose[coords]]]Take a collection of 500 random geo positions in France:
gps = RandomGeoPosition[Entity["Country", "France"], 500]Find the coordinate bounding box of the latitude and longitude quantities:
CoordinateBoundingBox[LatitudeLongitude[gps]]The same corner points can be obtained with GeoBoundingBox, expressed as GeoPosition objects:
GeoBoundingBox[gps]Draw the 500 points, the bounding box region and geo markers at the corner points:
GeoGraphics[{GeoBoundsRegion[%], Orange, Point[gps], PointSize[Large], GeoMarker[%]}, GeoRangePadding -> Quantity[100, "Miles"]]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_2026_coordinateboundingbox, author="Wolfram Research", title="{CoordinateBoundingBox}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_coordinateboundingbox, organization={Wolfram Research}, title={CoordinateBoundingBox}, year={2015}, url={https://reference.wolfram.com/language/ref/CoordinateBoundingBox.html}, note=[Accessed: 12-June-2026]}