Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Oct 22, 2016
1 parent 40ad3b6 commit d25cafe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions _doc/sphinxdoc/source/conf.py
Expand Up @@ -26,8 +26,9 @@
"hachibee", hachibee_sphinx_theme.get_html_themes_path(),
locals(), add_extensions=['hachibee_sphinx_theme'],
custom_style='custom_style.css',
extlinks=dict(issue=('https://github.com/sdpython/code_beatrix/issues/%s', 'issue'),
book=True))
extlinks=dict(
issue=('https://github.com/sdpython/code_beatrix/issues/%s', 'issue')),
book=True)

html_show_copyright = False
html_title = "lesenfantcodaient.fr"
Expand Down
6 changes: 4 additions & 2 deletions src/code_beatrix/algorithm/classroom.py
Expand Up @@ -48,8 +48,10 @@ def plot_positions(positions, edges=None, ax=None, **options):
p1 = posdict[e1]
p2 = posdict[e2]
if p1 != p2:
dx = ((p2[0] - p1[0]) / abs(p2[0] - p1[0]) * 0.1) if p2[0] != p1[0] else 0.0
dy = ((p2[1] - p1[1]) / abs(p2[1] - p1[1]) * 0.1) if p2[1] != p1[1] else 0.0
dx = ((p2[0] - p1[0]) / abs(p2[0] - p1[0])
* 0.1) if p2[0] != p1[0] else 0.0
dy = ((p2[1] - p1[1]) / abs(p2[1] - p1[1])
* 0.1) if p2[1] != p1[1] else 0.0
d = distance(p1, p2)
if d < 1.1:
color = "y"
Expand Down

0 comments on commit d25cafe

Please sign in to comment.