from pynomo.nomographer import * scale1 = { 'u_min': 6, 'u_max': 54, 'function_x': lambda u: 0, 'function_y': lambda u: (u - 6) / (54 - 6), 'title': r'$\rm m^3/h$', 'title_x_shift': -1.2, 'title_y_shift': 0.5, 'tick_levels': 3, 'tick_text_levels': 1, 'tick_side': 'left', 'text_format': '%.0f' } scale2 = { 'u_min': 100, 'u_max': 900, 'function_x': lambda u: 0, 'function_y': lambda u: (u - 100) / (900 - 100), 'title': r'$\rm l/min$', 'title_x_shift': 1.2, 'title_y_shift': 0.5, 'tick_levels': 3, 'tick_text_levels': 1, 'tick_side': 'right', 'text_format': '%.0f' } scale3 = { 'u_min': 5 / 3, 'u_max': 15, 'function_x': lambda u: 1, 'function_y': lambda u: (u - 5 / 3) / (15 - 5 / 3), 'title': r'$\rm l/s$', 'title_x_shift': 1.2, 'title_y_shift': 0.5, 'tick_levels': 3, 'tick_text_levels': 1, 'tick_side': 'right', 'text_format': '%.0f' } block1 = { 'block_type': 'type_8', 'f_params': scale1 } block2 = { 'block_type': 'type_8', 'f_params': scale2 } block3 = { 'block_type': 'type_8', 'f_params': scale3 } main_params={ 'filename': 'nomo.pdf', 'title_x': 1, 'title_y': 11.5, 'title_box_width': 10, 'title_str': r'Volumenstrom', 'paper_height': 10.0, 'paper_width': 2, 'block_params': [block1, block2, block3], 'transformations': [('scale paper',)], } Nomographer(main_params)