-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
key error when setAxisItems in PlotItem #1358
Comments
Agreed, the |
Here is the example. The first create_plot_item is just worked, but the second one will cause the key error.
|
Perhaps I have catched the error. the 'self.pi_sub' is defined too late, which caused the setXLink failed. |
I actually think your example should be possible for the most part. It was definitely possible in the past (before #1154) to achieve a shared axis between multiple plot items, so long as they belong to the same scene. I found that the check throwing the exception was due to a possibility of this really failing if you try to add a single Your example already uses the alternative approach to a "shared axis", though, which is to So, I think the action here is to switch |
That's fine, thank you! |
When I call the
I got this error:
There are maybe two bugs in this function, this is one solution:
Short description
Code to reproduce
Expected behavior
Real behavior
Tested environment(s)
Additional context
The text was updated successfully, but these errors were encountered: