Visualise yMMSL models with graphviz.
Project description
yMMSL plotting tool
A tool to visualise yMMSL files using graphviz
and ymmsl-python
.
Examples
Two examples are shown here, a simple one macro_micro, and a more complex one complex.
Default
Explicit ports, simple arrows, legend (-p -s -l
)
Usage (ymmsl graph --help
)
Usage: ymmsl graph [OPTIONS] YMMSL_FILES...
Plot a graphical representation of the passed yMMSL files.
To help develop or understand about a coupled simulation it may be useful to
view a graphical representation.
If multiple yMMSL files are given, then they will be combined left to right,
i.e. if there are conflicting declarations, the one from the file last given
is used.
Result:
A graph is displayed or saved to disk, containing all the defined
components and the connections between them.
Examples:
ymmsl graph simulation.ymmsl
Options:
-o, --out FILE Output file (default ./output.format)
-f, --fmt [canon|cmap|cmapx|cmapx_np|dia|dot|fig|gd|gd2|gif|hpgl|imap|imap_np|ismap|jpe|jpeg|jpg|mif|mp|pcl|pdf|pic|plain|plain-ext|png|ps|ps2|svg|svgz|vml|vmlz|vrml|vtx|wbmp|xdot|xlib]
Set output format (default svg).
-w, --viewer TEXT Open with specified viewer (try xdg-open)
-v, --verbose Show more info (prints the generated dot
syntax)
-p, --ports Explicitly draw component ports.
-l, --legend Show a legend (only with --ports).
-s, --simple-edges Only indicate conduit direction, not port
types.
--portlabels Never simplify matching port labels along an
edge.
-h, --hide-edge-labels Hide edge labels (as long as the input and
output port match).
--help Show this message and exit.
Issues and Discussions
As usual for any GitHub-based project, raise an issue if you find any bug or want to suggest an improvement, or open a discussion if you want to discuss.
Generated documentation
There is a docs/
folder containing sphinx documentation, but this has not yet been filled completely.
Build it with
sphinx-build docs html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ymmsl-dot-0.1.2.tar.gz
(15.7 kB
view details)
Built Distribution
ymmsl_dot-0.1.2-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file ymmsl-dot-0.1.2.tar.gz
.
File metadata
- Download URL: ymmsl-dot-0.1.2.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c87b089f611aa96bc8e17d959e38c4aab6ff1e528b6a628ff1a545b8f6344d4a |
|
MD5 | 65ae5016c20f4a1efb223abb7f0ade30 |
|
BLAKE2b-256 | f7beeb0f1a382ed8487a95f3e65ad5442535f44dc2a7ba359902cf91e160fcf3 |
File details
Details for the file ymmsl_dot-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ymmsl_dot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 543e64ccec17cb558f7bc543c24b68937b508aa110e9203c23be520bc9b91d7f |
|
MD5 | da1ff778c95ffd9ccd887331577af0d2 |
|
BLAKE2b-256 | 7350947483ed0905eae5bb57368c5fb04aab178daf466421f461cf1f3cd73a92 |