Plot4GMNS: An open-source academic research tool for visualizing multimodal networks for transportation system modeling and optimization
Authors: Dr. Junhua Chen, Zanyang Cui
Email: cjh@bjtu.edu.cn, zanyangcui@outlook.com
Introduction
To enable rapid transportation modeling and optimization, as railroad management researchers, we provide this free open-source tool for visualizing multimodal networks. Based on GMNS data format by Zepha foundation, plot4gmns is designed for reading and plotting multimodal data sets including transportation network files, demand and agent trace files.
Requirements
- pandas
- shapely
- matplotlib<=3.3.0
- numpy
- seaborn
- scipy
- chardet
Installation
pip install plot4gmns
Note
- For Windows users, the pip method might fail to install some dependencies. If errors occur when you try to install any of those dependencies, try instead to pip install their .whl files, which can be downloaded from the Unoffical Windows Binaries for Python Extension Packages.
Simple Example
>>>import plot4gmns as pg
"""Step 1: Reading network files"""
net=pg.readNetwork('./data')
"""Step 2: Visualizing network of different modes"""
# show all modes network
pg.showNetByAllMode(net)
# show auto mode network
pg.showNetByAutoMode(net)
"""Step 3: Visualizing network by node attributes"""
# show network by node ‘ctrl_type’ for 1 as signalized intersection
pg.showNetByNodeAttr(net,{'ctrl_type':1})
"""Step 4: Visualizing network by link attributes"""
# show network by given link type names
pg.showNetByLinkAttr(net,{'link_type_name':'secondary'})
"""Step 5: Visualizing network by POI attributes"""
# show network by given POI building types
pg.showNetByPOIAttr(net,{'building':'parking'})
"""Step 6: Visualizing network by zone attributes"""
# show network by zone demand traces
pg.showNetByZoneDemandFlow(net)
"""Step 7: Visualizing network by agent traces"""
pg.showNetByAgentTrace(net,agent_id=1)
User guide
Users can check the user guide for detialed introduction of plot4gmns.
Metadata
Release files for plot4gmns 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plot4gmns-0.0.9.tar.gz | 18.9 kB | Without provenance | Details for plot4gmns-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plot4gmns-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for plot4gmns-0.0.9-py3-none-any.whl |
Total release size: 37.1 kB
Release files / plot4gmns-0.0.9.tar.gz
| Download URL | plot4gmns-0.0.9.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e449bc532392b2332c2850d258fa83ffc50cae6440b67303ab1e9ed32ffd6e2a
|
|
BLAKE2b-256 checksum How to use checksums |
632abc65118f4335a2b029338d3af7bb4d5f43b7968283d8ebd140ad5df82ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.3
|
Release files / plot4gmns-0.0.9-py3-none-any.whl
| Download URL | plot4gmns-0.0.9-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07dd82ee44030a10514d8360aed1977a474b58c510edb9c3c8a95249273c2366
|
|
BLAKE2b-256 checksum How to use checksums |
c6b348a1ead3f5c577c0f3ec5e91ad02d10662192394e4ed0e65f5d8e09476ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.3
|
Security for plot4gmns 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.