-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imshow and labels from contour lines raise exception and stop thread #3
Comments
partial fix is to introduce a time of waiting with plt.pause(0.1) instead of detecting the arucos so it have time to synchronise the server with the matplotlib figure. |
Traceback (most recent call last): |
"A Matplotlib pane renders a matplotlib figure to png and wraps the base64 encoded data in a bokeh Div model". So when updating the frame. Plotting all the text contour labels takes more time or is incomplete, having the problem or the NoneType:
|
Panel is printing the matplotlib figure as a .png file first and then load this figure to panel, and that is what is projected. Solution: before sandbox changes the axes again, let panel find the figure and display the figure. What takes the most time for plotting are the contour labels, so that is why turning them off solved the problem. |
The figure takes too much time to be drawn when too many labels in the contour lines are desired. |
is async/await an option or are these threads entirely seperate? |
In the main thread, when the cmap_frame module and the contour lines module are on, without the aruco detection working, the thread stops and rises 'NoneType' object has no attribute 'dpi'.
from: matplotlib\text.py", line 852, in get_prop_tup
self.figure.dpi, weakref.ref(renderer),
to recreate the error:
Delete all the plt.pause(...) that you can find in the MainThread Module and other modules. And be sure to have the labels from the contour lines activated. Otherwise, there is no error.
The text was updated successfully, but these errors were encountered: