Replies: 7 comments 19 replies
-
That would be a nice to have feature, but it would be a lot to maintain, and frankly I’m not sure I know enough about such things to do it justice. Ideally the author of termplot could write an integration for a Rich, so we can have the best of both worlds... |
Beta Was this translation helpful? Give feedback.
-
Hi, this works:
Should be easy enough to edit |
Beta Was this translation helpful? Give feedback.
-
Author of termplotlib here. tpl doesn't do any plotting itself but instead relies on gnuplot's terminal output. That's because it's hard to plot on the terminal, and I concur with @willmcgugan that it would probably too much work to try and rewrite it in rich. |
Beta Was this translation helpful? Give feedback.
-
Another possible library to integrate (or just a source for inspiration) is asciichartpy (nevermind the JS-heavy readme, it's a Python port of a library which was originally written in JS). Its graphs are simple but pretty nice: And it's code is much simpler than I expected (only some ~150 lines if you exclude a rather long docstring). |
Beta Was this translation helpful? Give feedback.
-
Released termcharts [pypi] with rich compatibility in mind. |
Beta Was this translation helpful? Give feedback.
-
I just came here to see if termgraph or something similar was supported in Rich. Glad there are some options to try. Here's another one to add to the list: |
Beta Was this translation helpful? Give feedback.
-
For anyone finding this thread: https://github.com/piccolomo/plotext/blob/master/readme/environments.md#rich |
Beta Was this translation helpful? Give feedback.
-
Hey,
what I am really missing is a package which plots awesomely looking charts/plots in the terminal.
I would love to have a package with which I could not only display tables (thanks Rich!), but also bar charts, histograms, lineplots etc.
Inspiration: https://github.com/nschloe/termplotlib
Maybe this could be a nice extension of Rich in the future?
Eager to hear what you think!
Cheers
Beta Was this translation helpful? Give feedback.
All reactions