You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/root/./main_dup.py", line 50, in <module>
plt.show()
File "/usr/lib/python3.11/site-packages/plotext/_core.py", line 293, in show
_figure.show()
File "/usr/lib/python3.11/site-packages/plotext/_figure.py", line 319, in show
self.build()
^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/plotext/_figure.py", line 326, in build
self._build_matrix()
File "/usr/lib/python3.11/site-packages/plotext/_figure.py", line 332, in _build_matrix
self.monitor.build_plot() if not self.monitor.fast_plot else None
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/plotext/_build.py", line 261, in build_plot
[[self.matrix.insert_element(col_start + S + i, row_end - 1 - s, marker[s][i], color[s][i], style[s][i]) for i in range(3)] for s in range(l)] if legend_test else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/plotext/_build.py", line 261, in <listcomp>
[[self.matrix.insert_element(col_start + S + i, row_end - 1 - s, marker[s][i], color[s][i], style[s][i]) for i in range(3)] for s in range(l)] if legend_test else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/plotext/_build.py", line 261, in <listcomp>
[[self.matrix.insert_element(col_start + S + i, row_end - 1 - s, marker[s][i], color[s][i], style[s][i]) for i in range(3)] for s in range(l)] if legend_test else None
~~~~~~~~^^^
IndexError: list index out of range
This is a real script that I use, I replaced receiving real data and now it should run and give the same result on any hardware.
For some reason, this problem only occurs the first time the script is launched after the server is rebooted. If the script runs successfully, then after that it will always run successfully.
The text was updated successfully, but these errors were encountered:
This issue arrises because the lines your trying to plot does not appear in the y axis limits of [20,100], which causes empty arrays in the build. It is fixed with the piece of code in #197.
code
log
The text was updated successfully, but these errors were encountered: