-
Notifications
You must be signed in to change notification settings - Fork 12
Deprecation fix mpl 3.10 and beyond #69
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
Conversation
Making this a draft as we have not updated to 3.10 yet. |
Note I had to rename the warning UltraplotWarning to UltraPlotWarning due to some weird pytest-xdist issue. |
I had some spare time so pushed this along. There is one warning I could use your input for. There is a warning for the boxplot that keyword The warning implies that properties have to be fed through the The major problem is that it is not trivial to determine from a singular entry point how to cycle general objects. Line objects have different properties from boxplots, and contours. As such, setting all the properties through a general cycler won't be possible unless we write the code for this. There are some properties that can be leveraged for this in In short, we either For P.S. This warning can be found by running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments.
Hi @beckermr thanks for the comment but they don't address the things I outlined. |
Yes I know, sorry. I don't fully understand why things were deprecated either. I think not deprecating it fow now is fine. |
e9227f7
to
6a45e83
Compare
Tests look as they should and fail on newly added once or correct existing errors. |
Can we go ahead an merge this @beckermr? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a few more comments, plus there are test failures in the plots that do not look like we expect them.
Also the docs build is failing. |
Will fix this and perhaps split this PR up for clarity. |
* Introduces new rc param. Th parameter `colorbar.outline` defaults to `True` and toggles the outline frame of the colorbar. * Allows figure colorbar label to be put on arbitrary side of the figure. --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Matthew R. Becker <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This continue statement needs more discussion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, though I do not understand all of the changes.
The test failures need fixing, and then I think we can merge.
Ok merging this as the newer plots more correct. We may need to revert the draw in |
I was about to comment that the newer plots were more correct as well. If you want code review, please wait until the reviewer approves before merging. |
* Preparing for mpl 3.10 --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Matthew R. Becker <[email protected]>
Ah ok I gathered it was ok. Will wait next time. |
There are a lot of deprecation warnings from MPL and or Ultraplot existing in the current build. The majority of these fixes can be addressed by modifying the tests. Some of the deprecation warnings ensures keywords of usage to be compatible with mpl 3.10 which will result in errors in later versions.
There are a few errors I have not addressed that warrants some discussion.
The first one
The second one
For both of these, I don't agree with the deprecation warning. The first issue indicates that we should move towards a cycler object. However, adjusting the subplot to match the target baseline cannot be readily achieved through the cycler object. It requires setting the patches to a different alpha and leaving the lines with alpha = 1. This would (I think) require an extension of what the cycler object can handle which is to set all potential properties of all the artists. I don't think it can currently do this.
The second error implies the removal of multi-axis formatting. Personally, I would be against removing this feature as it is one of the most powerful features of UltraPlot.