diff --git a/termplotlib/figure.py b/termplotlib/figure.py index 50f7f11..d17ebe6 100644 --- a/termplotlib/figure.py +++ b/termplotlib/figure.py @@ -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