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:
Alexandre Duret-Lutz 2020-09-17 10:25:00 +02:00
parent 69c821154c
commit 9d7e6386e4
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ def setup(**kwargs):
import os
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 ''
max_states = '<' + str(kwargs.get('max_states', 50))

View file

@ -68,7 +68,7 @@
" fontname=\"Lato\"\n",
" node [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 -> 1\n",
" 0 [label=<0>, peripheries=2]\n",