You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application automatically reloads configuration files on change and shows parsing errors at the bottom. This is especially useful for rapid prototyping.
67
68
68
-
Desktop integration is still lacking with commonly used tools for installin python packages.
69
-
If you want your launcher to pick up the tool, you can save [its desktop file](https://raw.githubusercontent.com/precice/config-visualizer/master/data/org.precice.config_visualizer.desktop) manually to the directory `~/.local/share/applications/`. The directory may need to be created first.
69
+
Desktop integration is still lacking with commonly used tools for installing python packages.
70
+
If you want your launcher to pick up the tool, you can save [this desktop file](https://gist.githubusercontent.com/fsimonis/a08c3771abf808b0534d658bcb563f90/raw/e091d78c24b04d0fc903b8de4909528628d22b7b/org.precice.configvisualizer.desktop) (right-click > "Save Link As") manually to the directory `~/.local/share/applications/`. The directory may need to be created first.
71
+
After logging out and back in, you can start the program using your launcher and even directly open XML files with it.
70
72
71
73
## Using the CLI
72
74
73
-
Alternatively, you can generate [a DOT graph](https://graphviz.org/doc/info/lang.html) and transform it to a presentable format, e.g., PDF or PNG.
75
+
There two use-cases for the CLI:
74
76
75
-
1. Use `precice-config-visualizer -o config.dot precice-config.xml` to generate the grpah `config.dot` from the `precice-config.xml` file.
77
+
1. To directly render the configuration as an image
78
+
2. To output [a DOT graph](https://graphviz.org/doc/info/lang.html) which can be freely changed and finally rendered as an image
76
79
77
-
2. Use `dot -Tpdf -O config.dot` to layout the graph in `config.dot`, generating a `config.pdf`.
78
-
This program is part of graphviz and there are many more output formats possible.
80
+
Some common output formats such as png, pdf, svg, and jpg are automatically detected and rendered using `graphviz`/`dot`.
81
+
Unknown formats will be interpreted as an output for the graph description in the dot language.
79
82
80
-
Combine the two commands with a pipe to generate, for example, a PDF file (PNG/SVG are also possible):
83
+
To render a preCICE configuration as a PNG image use:
Set a bash function to your aliases to make your life easier. The [demo virtual machine](installation-vm.html) already [defines such functions](https://github.com/precice/vm/blob/main/provisioning/.alias).
88
-
{% endtip %}
89
+
To customize the graph further first generate the dot graph:
0 commit comments