Fixing AttributeError in drawLineColored function #152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi scikit-tda team,
I hope this message finds you well. I've encountered an issue while using the
drawLineColored
function in theripser.py
file. Specifically, the error "AttributeError: Line2D.set() got an unexpected keyword argument 'lineWidth'" is raised when trying to run the code from the Representative Cocycles notebook available at https://ripser.scikit-tda.org/en/latest/notebooks/Representative%20Cocycles.html.After investigating, I found that the issue stems from the use of 'lineWidth' with an uppercase 'W' in the
drawLineColored
function:The correct keyword argument is 'linewidth' with a lowercase 'w'. To address this, I have made the necessary changes to the
drawLineColored
function, replacing 'lineWidth' with 'linewidth'.I have created a pull request with these changes. Please review it at your earliest convenience.
Thank you for your time and consideration.