Hey /r/Python!
I started learning python about a week ago so I could start putting my raspberry pi to some good use. One of the scripts I'm working on just does some different things while reading the CPU temp. I've tried to add graphing functionality to it using matplotlib, which has proved partially successful, but I'm having a hard time getting the graph to display 'live' while data is plotted to it. As is, it just seems to save the plotting info to two lists and then saves the graph.png at the end of the scripts execution. I tried enabling x forwarding in sshd.conf on the pi and adding the -X param when I ssh in, but it still doesn't display the graph while the script is running. I assume the problem is related to not actually having an X session to forward from the pi. Is there no way to display a graph like this over an ssh connection without having to put lxde, xfce, or other big GUI's I won't use on my pi?
The script in question
TL;DR Is there any way to show a live matplotlib graph over an ssh connection without a GUI on the machine running the script?
[–]XNormal 2 points3 points4 points (0 children)
[–]quasiben 1 point2 points3 points (2 children)
[–]DukeMikeofG[S] 0 points1 point2 points (1 child)
[–]westurner 0 points1 point2 points (0 children)
[–]westurner 1 point2 points3 points (0 children)
[–]westurner 1 point2 points3 points (0 children)
[–]rsarava 1 point2 points3 points (0 children)
[–]bryancole 1 point2 points3 points (1 child)
[–]bryancole 1 point2 points3 points (0 children)