Streaming Data Not Working in Version 5.0
See original GitHub issueHi , I want to use streaming data mode to show some data, but is not working, It’s blocked in the beginning.
The code is like this
import plotext as plt
import time
l = 1
while l < 10000000000:
l *= 2
y.append(l)
plt.cld()
plt.clt()
plt.plot(y)
plt.show()
time.sleep(1)
^CTraceback (most recent call last): File “draw2.py”, line 21, in <module> plt.show() File “/usr/local/lib/python3.7/dist-packages/plotext/_core.py”, line 183, in show figure.show() File “/usr/local/lib/python3.7/dist-packages/plotext/_figure.py”, line 250, in show self.build() File “/usr/local/lib/python3.7/dist-packages/plotext/_figure.py”, line 257, in build self._build_matrix() File “/usr/local/lib/python3.7/dist-packages/plotext/_figure.py”, line 283, in _build_matrix self.monitor.build_plot(*self._size) if not self.monitor.fast_plot else None File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 847, in build_plot x[s], y[s], mxy = hd_group(x[s], y[s], xf[s], yf[s]) File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in hd_group m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in <listcomp> m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in <listcomp> m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] File “/usr/local/lib/python3.7/dist-packages/plotext/_monitor.py”, line 1191, in <listcomp> m = [[[r[:] for r in m0] for x in range(lx)] for y in range(ly)] KeyboardInterrupt
Thanks.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
I am happy you like it! 😃 Good to know that it won’t work with python 3.7, I keep issue open to work on it in the future (I am not working on
plotext
lately)P.S. I have python 3.10 and will check this later
Try to get the version of Python you are using (it doesn’t seem to like the unpacking operator *), also try to remove the warning shown by not running as administrator, even tough I tried to run it myself as administrator and worked just fine. Good luck