Live data from Hacker News

Plotext – Python Plotting on the Terminal

github.com

21–27 of 27 posts

Re: Plotext – Python Plotting on the Terminal

#21

For me, this is a good alternative to matplotlib when I try to visualize a plot using WSL. [edit]: matplotlib always crashed on me and failed to find Qt library.

This also seems like a good choice if you're training a model in a headless server via SSH and just want to plot out some data fast.

Re: Plotext – Python Plotting on the Terminal

#25
Why would one mimic matplotlib's API besides the fact that everyone knows it?

I use matplotlib a lot but I keep googling the same things again and again, which is my subjective indicator that something in the design is wrong. How to set log scales again? Do I apply this method to the figure or axis object? Setting a different backend (like agg) after pyplot was importet? Also, nested kwargs make it impossible for my IDE to give meaningful hints on parameters, not even talking about typed interfaces so far. Global state!

I mean, this library solves a truly complex problem and yes, I get things done but none of the hours working with it was close to be pleasant.

I wish some day someone is brave enough to enter new lands, leaving this matlab style of thinking behind.

Re: Plotext – Python Plotting on the Terminal

#26
post #25

Why would one mimic matplotlib's API besides the fact that everyone knows it? I use matplotlib a lot but I keep googling the same things again and again, which is my subjective indicator that something in the design is wrong. How to set log scales again? Do I apply this method to the figure or axis object? Setting a different backend (like agg) after pyplot was importet? Also, nested kwargs make it impossible for my…

There is no good reason to mimic matplotlib's API except that everyone knows it.

Re: Plotext – Python Plotting on the Terminal

#27
It would be cool if we could pipe any 2 dimensional data to this in the shell and it would render it. Also how does one read 2 dimensional data from CSV for instance? I wanna say sed but I don't know.

It would be handy for quick ad-hoc days analysis of log files or access logs.

Post reply on HN