-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathex_axes_6.py
40 lines (37 loc) · 1.31 KB
/
ex_axes_6.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# ex_axes_6.py
import sys
sys.path.insert(0, "..")
from pynomo.nomographer import Nomographer
N_params = {'u_min': 1.0,
'u_max': 10.0,
'function': lambda u: u,
'title': 'title',
'tick_levels': 2,
'tick_text_levels': 1,
'tick_side': 'left',
'title_draw_center': True,
'scale_type': 'manual line', # <-
'manual_axis_data': {1.0: 'one',
2.0: 'two',
3.0: 'three',
3.1415: r'$\pi$',
4.0: 'four',
5.0: 'five',
6.0: 'six',
7.0: 'seven',
8.0: 'eight',
9.0: 'nine',
10.0: 'ten'}
}
block_params = {'block_type': 'type_8',
'f_params': N_params,
'width': 5.0,
'height': 10.0,
}
main_params = {'filename': 'ex_axes_6.pdf',
'paper_height': 10.0,
'paper_width': 5.0,
'block_params': [block_params],
'transformations': [('scale paper',)]
}
Nomographer(main_params)