Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > cz.comp.lang.python > #3162
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.netfront.net!.POSTED.94.23.32.179!not-for-mail |
|---|---|
| From | "Jaroslav Lukesh" <lukesh@seznam.cz> |
| Newsgroups | cz.comp.lang.python |
| Subject | [python] Pynomo |
| Date | Sun, 19 Mar 2017 00:20:16 +0100 |
| Organization | Netfront http://www.netfront.net/ |
| Lines | 63 |
| Message-ID | <mailman.15.1489879219.4242.python@py.cz> (permalink) |
| References | <002001d2a03e$34193750$84d810ac@IBMXP> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-2"; reply-type=original |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | adenine.netfront.net; posting-host="94.23.32.179"; logging-data="98033"; mail-complaints-to="news@netfront.net" |
| To | "Konference PyCZ" <python@py.cz> |
| Received-SPF | neutral (Address does not pass the Sender Policy Framework) SPF=MAILFROM; sender=lukesh@seznam.cz; remoteip=::ffff:46.13.128.105; remotehost=; helo=105-128-13-46.tmcz.cz; receiver=hugo.zagamma.cz; |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Mailer | Microsoft Outlook Express 6.00.2900.2180 |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.2180 |
| Received-SPF | neutral (Address does not pass the Sender Policy Framework) SPF=FROM; sender=lukesh@seznam.cz; remoteip=::ffff:46.13.128.105; remotehost=; helo=105-128-13-46.tmcz.cz; receiver=hugo.zagamma.cz; |
| X-BeenThere | python@py.cz |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Konference PyCZ <python.py.cz> |
| List-Unsubscribe | <http://www.py.cz/mailman/options/python>, <mailto:python-request@py.cz?subject=unsubscribe> |
| List-Archive | <http://www.py.cz/pipermail/python/> |
| List-Post | <mailto:python@py.cz> |
| List-Help | <mailto:python-request@py.cz?subject=help> |
| List-Subscribe | <http://www.py.cz/mailman/listinfo/python>, <mailto:python-request@py.cz?subject=subscribe> |
| X-Mailman-Original-Message-ID | <002001d2a03e$34193750$84d810ac@IBMXP> |
| Xref | csiph.com cz.comp.lang.python:3162 |
Show key headers only | View raw
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)
Back to cz.comp.lang.python | Previous | Next | Find similar
[python] Pynomo "Jaroslav Lukesh" <lukesh@seznam.cz> - 2017-03-19 00:20 +0100
csiph-web