Created
December 12, 2015 11:11
-
-
Save windymelt/3f01b5b4ed8841f05ee1 to your computer and use it in GitHub Desktop.
シュトリヒ対応ノモグラム作成スクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pynomo.nomographer import * | |
N_params_1={ | |
'u_min':0.0, | |
'u_max':10.0, | |
'function':lambda u:u, | |
'title':r'$width [m]$', | |
'tick_levels':3, | |
'tick_text_levels':1, | |
} | |
N_params_2={ | |
'u_min':0.1, | |
'u_max':3, | |
'function':lambda u:u, | |
'title':r'$distance$', | |
'tick_levels':1, | |
'tick_text_levels':1, | |
'scale_type':'manual line', | |
'manual_axis_data': {0.1: '100m', 0.2: '200m', 0.25: '250m', 0.3: '300m', 0.4: '400m', 0.5: '500m', 0.6: '600m', 0.7: '700m', 0.75: '750m', 0.8: '800m', 0.9: '900m', 1: '1km', 1.2: '', 1.25: '1.25km', 1.4: '', 1.5: '1.5km', 1.75: '1.75km', 2: '2km', 2.5: '2.5km', 3: '3km'} | |
} | |
N_params_3={ | |
'u_min':0.0, | |
'u_max':10.0, | |
'function':lambda u:u, | |
'title':r'$strich$', | |
'tick_levels':2, | |
'tick_text_levels':1, | |
} | |
block_1_params={ | |
'block_type':'type_2', | |
'width':10.0, | |
'height':10.0, | |
'f1_params':N_params_1, | |
'f2_params':N_params_2, | |
'f3_params':N_params_3, | |
'isopleth_values':[[1,1,1]], | |
} | |
main_params={ | |
'filename':'strich_nomo.pdf', | |
'paper_height':10.0, | |
'paper_width':10.0, | |
'block_params':[block_1_params], | |
'transformations':[('rotate',0.01),('scale paper',)], | |
'title_str':r'$w=d\times s$' | |
} | |
Nomographer(main_params) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment