Skip to content

Commit

Permalink
Merge pull request #56 from FedeClaudi/main
Browse files Browse the repository at this point in the history
Integration with rich
  • Loading branch information
nschloe authored Feb 15, 2021
2 parents 68e165d + 5d6d53b commit f4c42a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions termplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def __init__(self, width=None, padding=0):
self._padding = create_padding_tuple(padding)
return

def __rich_console__(self, *args):
yield self.get_string()

def aprint(self, string):
self._content.append(string.split("\n"))
return
Expand Down

0 comments on commit f4c42a7

Please sign in to comment.