Skip to content

Commit

Permalink
Merge pull request #60 from alexhagen/tikzdict
Browse files Browse the repository at this point in the history
Add circle shape to the  Dot2TikZConv dict
  • Loading branch information
kjellmf authored Mar 15, 2019
2 parents db73048 + 19363ba commit e6f6dda
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 @@ -212,7 +212,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 @@ -2070,8 +2070,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 @@ -2475,7 +2475,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 @@ -2560,7 +2560,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 e6f6dda

Please sign in to comment.