Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > cz.comp.lang.python > #3163

Re: [python] Pynomo

From zu1234 <zu1234@seznam.cz>
Newsgroups cz.comp.lang.python
Subject Re: [python] Pynomo
Date 2017-03-19 11:28 +0100
Organization Netfront http://www.netfront.net/
Message-ID <mailman.16.1489919305.4242.python@py.cz> (permalink)
References <002001d2a03e$34193750$84d810ac@IBMXP> <a89e609d-2059-91d7-2ed7-6b7b5deb0e1c@seznam.cz>

Show all headers | View raw


Pěkné!

Dne 19.3.2017 v 0:20 Jaroslav Lukesh napsal(a):
> Zdar,
>
> chtěl jsem si udělat nomogram na spotřebu v autě a asi by to bylo 
> rychlejší udělat jako kalkulačku s jednočipem, kroutítkem a displejem.
>
> Isopleth ukazuje úplně někam mimo, dvě osy jsou sražené.
>
> Pískoviště tady: http://46.101.125.20:8080/
>
> Dík, JL.
>
> import sys
> sys.path.insert(0, "..")
> from pynomo.nomographer import *
>
> N_params_1={
>        'u_min':3.0,
>        'u_max':33.0,
>        'function':lambda u:u,
>        'title':r'$u_1$',
>        'tick_levels':3,
>        'tick_text_levels':1,
>                }
>
> N_params_2={
>        'u_min':3.0,
>        'u_max':8.0,
>        'function':lambda u:u,
>        'title':r'$u_2$',
>        'tick_levels':3,
>        'tick_text_levels':1,
>                }
>
> N_params_3={
>        'u_min':100.0,
>        'u_max':700.0,
>        'function':lambda u:u,
>        'title':r'$u_3$',
>        'tick_levels':3,
>        'tick_text_levels':1,
>                }
>
>
> block_1_params={
>             'block_type':'type_1',
>             'width':10.0,
>             'height':10.0,
>             'f1_params':N_params_1,
>             'f2_params':N_params_2,
>             'f3_params':N_params_3,
>            # 'isopleth_values':[[16,4,'x'],[16,5,'x'],],
>             }
>
> main_params={
>              'filename':'ex_type2_nomo_1.pdf',
>              'paper_height':10.0,
>              'paper_width':10.0,
>              'block_params':[block_1_params],
>              'transformations':[('rotate',0.01),('scale paper',)],
>              'title_str':r'$u_2\times u_3\times 0.01 = u_1$'
>              }
> Nomographer(main_params)
>
> _______________________________________________
> Python mailing list
> python@py.cz
> http://www.py.cz/mailman/listinfo/python
>
> Visit: http://www.py.cz

Back to cz.comp.lang.python | Previous | Next | Find similar


Thread

Re: [python] Pynomo zu1234 <zu1234@seznam.cz> - 2017-03-19 11:28 +0100

csiph-web