class MpFig
😱 Types incomplete or incorrect? 🙏 Please contribute!
methods
MpFig.boundingbox
@return - minx miny maxx maxy
Return the bounding box, as an array of 4 values. number.
When the boundingbox represents a “negated rectangle”, i.e. when the first set of coordinates is larger than the second set, the picture is empty.
Reference:
- Corresponding C source code: lmplib.c#L1375-L1388
MpFig.postscript
Return a string that is the ps output of the fig
.
this function accepts two optional integer arguments for specifying the values of prologues
(first argument) and procset
(second argument)
Reference:
- Corresponding C source code: lmplib.c#L1262-L1276
MpFig.svg
Return a string that is the svg output of the fig
.
This function accepts an optional integer argument for specifying the value of prologues
.
Reference:
- Corresponding C source code: lmplib.c#L1278-L1291
MpFig.png
Reference:
- Corresponding C source code: lmplib.c#L1293-L1306
MpFig.objects
Return the actual array of graphic objects in this fig
.
Note: you can call fig:objects()
only once for any one fig
object!
Reference:
- Corresponding C source code: lmplib.c#L1213-L1233
MpFig.copy_objects
Return a deep copy of the array of graphic objects in this fig
.
Reference:
- Corresponding C source code: lmplib.c#L1235-L1253
MpFig.filename
The filename this fig
's PostScript output would have written to in stand alone mode
Reference:
- Corresponding C source code: lmplib.c#L1308-L1318
MpFig.width
Return the fontcharwd
value.
Reference:
- Corresponding C source code: lmplib.c#L1320-L1329
MpFig.height
Return the fontcharht
value.
Reference:
- Corresponding C source code: lmplib.c#L1331-L1340
MpFig.depth
Return the fontchardp
value.
Reference:
- Corresponding C source code: lmplib.c#L1342-L1351
MpFig.italcorr
Return the fontcharit
value.
Reference:
- Corresponding C source code: lmplib.c#L1353-L1362
MpFig.charcode
Return the (rounded) charcode
value.
Reference:
- Corresponding C source code: lmplib.c#L1364-L1373