python: reduce automata width to prevent overflows with Jupyter
* python/spot/__init__.py (setup): Reduce the default maximal width of automata so that Jupyter output does not add an horizontal scroll bar for a few pixels. * tests/python/automata-io.ipynb: Adjust.
This commit is contained in:
parent
69c821154c
commit
9d7e6386e4
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ def setup(**kwargs):
|
||||||
import os
|
import os
|
||||||
|
|
||||||
s = ('size="{}" edge[arrowhead=vee, arrowsize=.7]')
|
s = ('size="{}" edge[arrowhead=vee, arrowsize=.7]')
|
||||||
os.environ['SPOT_DOTEXTRA'] = s.format(kwargs.get('size', '10.2,5'))
|
os.environ['SPOT_DOTEXTRA'] = s.format(kwargs.get('size', '10.13,5'))
|
||||||
|
|
||||||
bullets = 'B' if kwargs.get('bullets', True) else ''
|
bullets = 'B' if kwargs.get('bullets', True) else ''
|
||||||
max_states = '<' + str(kwargs.get('max_states', 50))
|
max_states = '<' + str(kwargs.get('max_states', 50))
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
" fontname=\"Lato\"\n",
|
" fontname=\"Lato\"\n",
|
||||||
" node [fontname=\"Lato\"]\n",
|
" node [fontname=\"Lato\"]\n",
|
||||||
" edge [fontname=\"Lato\"]\n",
|
" edge [fontname=\"Lato\"]\n",
|
||||||
" size=\"10.2,5\" edge[arrowhead=vee, arrowsize=.7]\n",
|
" size=\"10.13,5\" edge[arrowhead=vee, arrowsize=.7]\n",
|
||||||
" I [label=\"\", style=invis, width=0]\n",
|
" I [label=\"\", style=invis, width=0]\n",
|
||||||
" I -> 1\n",
|
" I -> 1\n",
|
||||||
" 0 [label=<0>, peripheries=2]\n",
|
" 0 [label=<0>, peripheries=2]\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue