I'm trying to create a chart of X & Y values, but the values are now showing on the chart. Others have encountered the same problem. Case in point:
matplotlib does not show my drawings although I call pyplot.show()
I tried following the suggestions but nothing works. I printed the backends:
['GTK3Agg', 'GTK3Cairo', 'MacOSX', 'nbAgg', 'Qt4Agg', 'Qt4Cairo', 'Qt5Agg', 'Qt5Cairo', 'TkAgg', 'TkCairo', 'WebAgg', 'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']
....however I'm not sure how to use them or find out if there is a missing dependency.
Output when running the code:
python3 plot_static.py
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/matplotlib/cbook/__init__.py", line 216, in process
func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/matplotlib/animation.py", line 953, in _start
self._init_draw()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/matplotlib/animation.py", line 1732, in _init_draw
self._draw_frame(next(self.new_frame_seq()))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/matplotlib/animation.py", line 1755, in _draw_frame
self._drawn_artists = self._func(framedata, *self._args)
File "plot_static.py", line 25, in animate
x, y = line.split(',') # Delimiter is comma
ValueError: not enough values to unpack (expected 2, got 1)