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

pgfObject(FormattedGraphicPrimitives) -- create the string describing a series of graphic primitives in pgf

Synopsis

Description

The options that are not given in the hash table part of FGP are set at their default values if they are contained in defaultPGFOptions. Options not listed in possiblePGFOptions are discarded.

i1 : myoptions = hashTable {"fill"=>"black"}

o1 = HashTable{"fill" => black}

o1 : HashTable
i2 : myfgp= formatGraphicPrimitives({point(20,30)},myoptions)

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

o2 : FormattedGraphicPrimitives
i3 : pgfObject(myfgp)

o3 = \draw[fill=black] (20,30) circle (0.1);

Ways to use this method: