Skip to content

Commit

Permalink
fix(edge): only use the label
Browse files Browse the repository at this point in the history
  • Loading branch information
mingrammer committed Mar 9, 2020
1 parent 5b56cbd commit e6af7be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions diagrams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ def __init__(
node: "Node" = None,
forward: bool = False,
reverse: bool = False,
xlabel: str = "",
label: str = "",
color: str = "",
style: str = "",
Expand Down Expand Up @@ -442,7 +441,7 @@ def __init__(
self._attrs[k] = v

# Graphviz complaining about using label for edges, so replace it with xlabel.
self._attrs["xlabel"] = label if label else xlabel
self._attrs["xlabel"] = label
self._attrs["color"] = color
self._attrs["style"] = style
if fontcolor:
Expand Down

0 comments on commit e6af7be

Please sign in to comment.