Macaulay2 » Documentation
Packages » Graphics :: formatGraphicPrimitives(BasicList,HashTable)
next | previous | forward | backward | up | index | toc

# formatGraphicPrimitives(BasicList,HashTable) -- create a formatted graphic primitive object

- Function: formatGraphicPrimitives
- Usage:
    `textTag(gplist,h)`
- Inputs:
  - gplist, a basic list,
  - h, a hash table, containing graphic options
- Outputs:
  - an instance of the type FormattedGraphicPrimitives,

## Description

    i1 : myPoint1=point(20.,30.)

    o1 = Point2D{20, 30}

    o1 : Point2D

    i2 : myPoint2=point(30.,40.)

    o2 = Point2D{30, 40}

    o2 : Point2D

    i3 : myOptions = hashTable {"fill"=>"black"}

    o3 = HashTable{"fill" => black}

    o3 : HashTable

    i4 : formatGraphicPrimitives({myPoint1,myPoint2},myOptions)

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

    o4 : FormattedGraphicPrimitives

## Ways to use this method:

- formatGraphicPrimitives(BasicList,HashTable) -- create a formatted graphic primitive object

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