Visualisation from command line or Python

10 views
Skip to first unread message

Paul Chisholm

unread,
Jul 25, 2026, 8:58:22 PM (3 days ago) Jul 25
to MiniZinc
The features for visualisation of solutions in the IDE are great. What is the best way to obtain the same visualisation from the command line or via the Python API.

In one model I use vis_line and running at the command line gives:

{"url": "std/ide/vis_scatter.html", "userData": {"seriesLabels": ["(,)"], "type": "line", "xLabel": "", "yLabel": ""}}
[{"x": [3, 4, 5, 6, 7, 7, 8, 9, 9, 8, 8, 8, 7, 7, 8, 8, 7, 6, 6, 5, 5, 4, 4, 5, 5, 5, 4, 4, 3, 3, 2, 1, 1], "y": [8, 8, 8, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 3, 3, 2, 2, 2, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 5, 5, 5, 4]}]

Seems like it needs a fair amount of effort to go from this to the visualisation.
Reply all
Reply to author
Forward
0 new messages