dot: add option C(COLOR)
This fixes the output gliches visible in the previous patches, where highlighting a state would remove its fill color. * spot/twaalgos/dot.cc, spot/taalgos/dot.cc: Implement option C(COLOR). * bin/common_aoutput.cc, doc/org/oaut.org: Document it. * doc/org/.dir-locals.el.in, doc/org/init.el.in, python/spot/__init__.py: Use it. * tests/python/automata-io.ipynb, tests/python/automata.ipynb, tests/python/highlighting.ipynb: Test it. * tests/core/readsave.test: Adjust. * NEWS: Mention recent changes.
This commit is contained in:
parent
23c2cbf46a
commit
77b0b5b3fe
12 changed files with 163 additions and 107 deletions
|
|
@ -76,14 +76,14 @@ def setup(**kwargs):
|
|||
"""
|
||||
import os
|
||||
|
||||
s = ('size="{}" node[style=filled,fillcolor="{}"] '
|
||||
'edge[arrowhead=vee, arrowsize=.7]')
|
||||
os.environ['SPOT_DOTEXTRA'] = s.format(kwargs.get('size', '10.2,5'),
|
||||
kwargs.get('fillcolor', '#ffffaa'))
|
||||
s = ('size="{}" edge[arrowhead=vee, arrowsize=.7]')
|
||||
os.environ['SPOT_DOTEXTRA'] = s.format(kwargs.get('size', '10.2,5'))
|
||||
|
||||
bullets = 'B' if kwargs.get('bullets', True) else ''
|
||||
max_states = '<' + str(kwargs.get('max_states', 50))
|
||||
d = 'rf({})'.format(kwargs.get('font', 'Lato')) + bullets + max_states
|
||||
d = 'rf({})C({}){}'.format(kwargs.get('font', 'Lato'),
|
||||
kwargs.get('fillcolor', '#ffffaa'),
|
||||
bullets + max_states)
|
||||
global _show_default
|
||||
_show_default = kwargs.get('show_default', None)
|
||||
os.environ['SPOT_DOTDEFAULT'] = d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue