Grid rendering options¶
render-grid-margins¶
- type
size
- default
0, 0
- description
Horizontal and vertical margins around the grid cell, in pixels.
render-grid-title-property¶
- type
string
- default
none
- description
The name of the molecule’s property that defines the title that is put under each molecule.
If not defined, no titles are shown. The special value “^NAME” means to use the molecule’s name as its title.
array = indigo.createArray()
for m in indigo.iterateSDFile('data/pubchem-subset.sdf'):
array.arrayAdd(m)
indigo.setOption("render-grid-margins", "10, 10")
indigo.setOption("render-grid-title-offset", "10")
indigo.setOption("render-comment-position", "top")
indigo.setOption("render-grid-title-font-size", "15")
indigo.setOption("render-grid-title-property", "PUBCHEM_MOLECULAR_WEIGHT")
indigo.setOption("render-comment", "PUBCHEM_MOLECULAR_WEIGHT")
indigoRenderer.renderGridToFile(array, None, 2, "result_2.png")
indigo.setOption("render-grid-title-property", "PUBCHEM_COORDINATE_TYPE")
indigo.setOption("render-comment", "PUBCHEM_COORDINATE_TYPE")
indigoRenderer.renderGridToFile(array, None, 2, "result_1.png")
Input: data/pubchem-subset.sdf
render-grid-title-alignment¶
- type
enum
- default
center
- description
Cell title alignment
Supported values: left, right, center, center-left
array = indigo.createArray()
for m in indigo.iterateSDFile('data/pubchem-subset.sdf'):
array.arrayAdd(m)
indigo.setOption("render-grid-margins", "10, 10")
indigo.setOption("render-grid-title-offset", "10")
indigo.setOption("render-comment-position", "top")
indigo.setOption("render-grid-title-font-size", "15")
indigo.setOption("render-grid-title-alignment", "center-left")
indigo.setOption("render-grid-title-property", "PUBCHEM_COORDINATE_TYPE")
indigo.setOption("render-comment", "render-grid-title-alignment=center-left")
indigoRenderer.renderGridToFile(array, None, 2, "result_1.png")
Input: data/pubchem-subset.sdf
render-grid-title-font-size¶
- type
int
- default
20
- description
Font size for the title in absolute units, roughly equal to the height in pixels.
render-grid-title-offset¶
- type
int
- default
0
- description
Vertical space (in pixels) between the title and the rendered structure.