Top level parameters¶
Main params define the top level properties of the nomograph. TODO: some explanations.
Main params¶
parameter |
default value |
explanation |
---|---|---|
|
|
String. Filename of generated file. .pdf and .eps formats supported. |
|
|
String. Height of paper (roughly, ticks and texts extend this). |
|
|
String. Width of paper (roughly, ticks and texts extend this). |
|
Array of Blocks. List of blocks that make the nomograph. |
|
|
|
Array of tuples. List of transformations to transform nomograph. |
|
|
String. Title string of nomograph. |
|
paper_width/2.0 |
Float. Title x-position. |
|
paper_height |
Float. Title y-position. |
|
paper_width/2.2 |
Float. Title box width. |
|
|
Color. Title color. |
|
|
Boolean. If True, draws grid to help position texts, etc. |
|
|
func(context). PyX function(canvas) to draw under nomograph. Function definition could be: def post(c):
c.stroke(path.line(2, 2, 15, 2) +
path.line(15, 2, 10, 15) +
path.line(15, 15, 2, 15) +
path.line(2, 15, 2, 2))
|
|
|
func(context). PyX function(canvas) to draw over nomograph. Definiton same as for ‘pre_func’. |
|
|
Boolean. If True, prints dicts of definitions. |
|
|
List of Dicts defining texts. Defines extra texts. Could be for example: [{'x':1.0,
'y':1.0,
'text':'testing',
'width':5,
'pyx_extra_defs':[color.rgb.red,text.size.Huge]
},
{'x':1.0,
'y':2.0,
'text':'testing',
'width':5,
'pyx_extra_defs':[color.rgb.green]
},
{'x':1.0,
'y':3.0,
'text':r"line \par break",
'width':5,
'pyx_extra_defs':[color.rgb.blue,text.size.tiny]
}]
|
|
|
List of Dicts. Defines appearance of isopleths. Could be for example: [{'color':'MidnightBlue',
'linewidth':'THICK',
'linestyle':'dashdotted',
'transparency':0.2},
{'color':'Orange',
'linewidth':'THIN',
'linestyle':'dashdotted',
'transparency':0.9}]
|