I use the haskell chart drawing scheme . The code below is for creating an orange hexagon with the text "(0,0)" superimposed on it. Unfortunately, the text is tiny. I tried to make it bigger by resizing rect, but no luck.
rect
import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine diagram = mconcat [ text "(0,0)" <> rect 8 1, hexagon 20 # lw 0.02 # fc orange # rotateBy (1/4) ] main = defaultMain (pad 1.1 diagram)
As the hammar shows, you can use scale, for example:
scale
(text "(0,0)" <> rect 8 1) # scale 5
You can also change the font size, for example
text "(0,0)" # fontSize 5 ...