python: SVG display of word as signals

Fixes #309.

* python/spot/__init__.py (twa_word.as_svg, twa_word.show): New
  methods.
* tests/python/word.ipynb: Use them.
* NEWS: Mention them.
This commit is contained in:
Alexandre Duret-Lutz 2018-01-04 18:43:12 +01:00
parent 678446f1d6
commit 17b295e10f
3 changed files with 253 additions and 126 deletions

4
NEWS
View file

@ -227,6 +227,10 @@ New in spot 2.4.4.dev (net yet released)
- The "product-states" property of automata is now accessible via
spot.twa.get_product_states() and spot.set.get_product_states().
- twa_word instances can be displayed as SVG pictures, with one
signal per atomic proposition. For some examples, see the use of
the show() method in https://spot.lrde.epita.fr/ipynb/word.html
Deprecation notices:
(These functions still work but compilers emit warnings.)