There’s a couple good bash libraries for that too:
https://github.com/glamp/bashplotlib
There’s a better one google is failing me on
It's not as complete as matplotlib, but there is an ASCII plotting library which has a (very) similar API to matplotlib called bashplotlib: https://github.com/glamp/bashplotlib
Nice!\nA more traditional version of this in the shell that I love to use day to day is bashplotlib: https://github.com/glamp/bashplotlib