nschloe / termplotlib

:chart_with_upwards_trend: Plotting on the command line
GNU General Public License v3.0
673 stars 19 forks source link

Integration with rich #56

Closed FedeClaudi closed 3 years ago

FedeClaudi commented 3 years ago

As discussed: https://github.com/willmcgugan/rich/discussions/1002

Added a __rich_console__ method to Figure for integration with rich. This simplifies the syntax when displaying plots in rich, and enables for simple formatting (e.g. color of string representation of the plots)