Skip to content

Commit

Permalink
added circle to the Dot2TikZConv dict so that you can easily draw cir…
Browse files Browse the repository at this point in the history
…cles in tikz conversion
  • Loading branch information
alexhagen committed May 17, 2018
1 parent 75e6348 commit 19363ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dot2tex/dot2tex.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def create_xdot(dotdata, prog='dot', options=''):
log.error("Graphviz returned with the following message: %s", error_data)
else:
# Graphviz raises a lot of warnings about too small labels,
# we therefore log them using log.debug to "hide" them
# we therefore log them using log.debug to "hide" them
log.debug('Graphviz STDERR %s', error_data)
finally:
stderr.close()
Expand Down Expand Up @@ -2068,8 +2068,8 @@ class Dot2TikZConv(Dot2PGFConv):
'oval': 'ellipse',
'diamond': 'diamond',
'trapezium': 'trapezium',
'star': 'star'

'star': 'star',
'circle': 'circle',
}

compass_map = {'n': 'north', 'ne': 'north east', 'e': 'east',
Expand Down Expand Up @@ -2473,7 +2473,7 @@ def do_nodes(self):
x, y = pos.split(',')
label = self.get_label(node)
pos = "%sbp,%sbp" % (smart_float(x), smart_float(y))
# TODO style
# TODO style

sn = ""
sn += self.output_node_comment(node)
Expand Down Expand Up @@ -2558,7 +2558,7 @@ def end_node(self, node):

class PositionsDotConv(Dot2PGFConv):
"""A converter that returns a dictionary with node positions
Returns a dictionary with node name as key and a (x, y) tuple as value.
"""

Expand Down

0 comments on commit 19363ba

Please sign in to comment.