Top level parameters

Main params define the top level properties of the nomograph. TODO: some explanations.

Main params

General params

parameter

default value

explanation

'filename'

'pynomo_default.pdf'

String. Filename of generated file. .pdf and .eps formats supported.

'paper_height'

20.0

String. Height of paper (roughly, ticks and texts extend this).

'paper_width'

20.0

String. Width of paper (roughly, ticks and texts extend this).

'block_params'

Array of Blocks. List of blocks that make the nomograph.

'transformations'

[('rotate', 0.01), ('scale paper')]

Array of tuples. List of transformations to transform nomograph.

'title_str'

''

String. Title string of nomograph.

'title_x'

paper_width/2.0

Float. Title x-position.

'title_y'

paper_height

Float. Title y-position.

'title_box_width'

paper_width/2.2

Float. Title box width.

'title_color'

'color.rgb.black'

Color. Title color.

'make_grid'

False

Boolean. If True, draws grid to help position texts, etc.

'pre_func'

None

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))

'post_func'

None

func(context). PyX function(canvas) to draw over nomograph. Definiton same as for ‘pre_func’.

'debug'

False

Boolean. If True, prints dicts of definitions.

'extra_texts'

[]

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]
 }]

'isopleth_params'

[{}]

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}]