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
[Bug]: AttributeError: 'LassoSelector' object has no attribute '_props' #25199
Comments
The properties for I think the correct solution is to redefine |
From a quick look, I'd perhaps try to just get rid of the _props attribute and always store the properties directly in the instantiated artist (creating it as early as possible). |
It appears that the artist is generally used, and the only real need for |
This is the only selector widget that needs to remember its properties separately from the artist, because the artist can be recreated. Fixes matplotlib#25199
This is the only selector widget that needs to remember its properties separately from the artist, because the artist can be recreated. Fixes matplotlib#25199
This was the only selector widget that needed to remember its properties separately from the artist, because the artist can be recreated, but we can copy from the old to new. Fixes matplotlib#25199
This was the only selector widget that needed to remember its properties separately from the artist, because the artist can be recreated, but we can copy from the old to new. Fixes matplotlib#25199
Summary
I used the LassoSelector object to select the single point in the scatterplot. But when I try to update the line color of LassoSelector with the set_props function, I get an error like this AttributeError: 'LassoSelector' object has no attribute '_props'.
Proposed fix
This warning does not occur when the comment symbol is placed at the beginning of the line "self._props.update(props)" in the "set_ props" function of the matplotlib library's widget.py code.
The text was updated successfully, but these errors were encountered: