Macaulay2 » Documentation
Packages » Graphics :: pictureZone(Picture)
next | previous | forward | backward | up | index | toc

# pictureZone(Picture) -- find the zone that contains the whole picture

- Function: pictureZone
- Usage:
    `pictureZone(mypict)`
- Inputs:
  - mypict, an instance of the type Picture,
- Outputs:
  - a list, of the form {xmin,xmax,ymin,ymax} (or {xmin,xmax,ymin,ymax,zmin,zmax} for 3D objects) describing a zone containing the object fgp

## Description

    i1 : myfgp1=formatGraphicPrimitives({point(20.,30.),point(30.,40.)},hashTable {"fill"=>"black"})

    o1 = FormattedGraphicPrimitives{{Point2D{20, 30}, Point2D{30, 40}}, HashTable{"fill" => black}}

    o1 : FormattedGraphicPrimitives

    i2 : myfgp2=formatGraphicPrimitives({circle(point(20.,30.),10)},hashTable {"fill"=>"red"})

    o2 = FormattedGraphicPrimitives{{Circle{Point2D{20, 30}, 10}}, HashTable{"fill" => red}}

    o2 : FormattedGraphicPrimitives

    i3 : mypict=picture({myfgp1,myfgp2})

    o3 = Picture{FormattedGraphicPrimitives{{Point2D{20, 30}, Point2D{30, 40}}, HashTable{"fill" => black}}, FormattedGraphicPrimitives{{Circle{Point2D{20, 30}, 10}}, HashTable{"fill" => red}}}

    o3 : Picture

    i4 : pictureZone(mypict)

    o4 = {10, 30, 20, 40}

    o4 : List

## Ways to use this method:

- pictureZone(Picture) -- find the zone that contains the whole picture

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Graphics.m2:1227:0.