Python: Matplotlib and Pandas Woes 2020-08-27 19:42:14
So, I'm not a games or flash programmer, I use Python mostly to process data (a la Data Science Wannabe) and matplotlib has been MISBEHAVING for me. I use Python 3.
This is apparently not an uncommon problem, I'm sure I can sift an answer out of the ether that is stackoverflow or one of the multitudes of other places, but I thought I'd throw it at NG and see what shakes out.
I have some issues. in Rasbian (debian/linux for Raspberry pi) matplotlib does not plot when I call the python script from a terminal shell, but it DOES plot when I run it from a dev environment (Thonny on Raspberry Pi). The script returns warnings because of future multidimensional array stuff being broken in pandas (using Pandas to read a datetime object is just a whole can of worms), but it works. I want it to work when I schedule it in crontab, which does not work. Do I have to pull a "python3 -m venv env" thing or something? It's just doing a histogram and a line chart, nothing super fancy, the idea is that the script runs every five minutes to update the graph, which is saved as a .png.
I can't run matplotlib on my Win10 machine at all right now. It's trainwrecked somehow. I've reinstalled it, uninstalled it, force-reinstalled it and manually copied the files into PATH directories and modified PATH and it's just... so... frustrating. Why does Win10 install Python in a weird tucked-away directory, it makes PATH WEIRD.
I usually use Spyder with Win10. matplotlib in Spyder doesn't work right now because I broke my matplotlib installation in the course of beating my head against it. I probably have to do a clean reinstall of Anaconda, etc. and I'm just too lazy to do it atm.
I want to be able to call a python script using matplotlib from Powershell. I recall this working for me previously, but I was running Python inside Powershell as a ... shell. Of power. With Python in it.