-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
polar plots do not properly handle units #4905
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
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.
Silly question, where is this documented/implemented?
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.
docstring
|
Side note: there's no reason to prefix your commit messages with your initials; that's why you set your author info before committing anything. |
lib/matplotlib/projections/polar.py
Outdated
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.
And x here too.
|
Can you modify or extend https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_axes.py#L384 to catch this issue? |
Added more test cases to test polar functions.
|
When moving my fixes over to git, I had accidentally transposed which axis was used for the unit conversion. I have fixed that. I have also added some more test cases to test for this. I am not sure what the process is for generating the baseline images or even running the test harness anymore. It has changed dramatically from when I first wrote it up so many years ago. What is the process for this now? |
|
See On Mon, Aug 17, 2015, 3:54 PM James Evans notifications@github.com wrote:
|
|
Essentially, just run the test directly (after installing the latest On Mon, Aug 17, 2015 at 3:54 PM, James Evans notifications@github.com
|
|
ping @jrevans Any update on this? |
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 shouldn't be necessary and probably indicates a bug somewhere else. Returning unicode from this function is actually what we want. Can you describe which backend/platform you were using when you can across this problem?
|
@jrevans: Any progress on addressing the questions above? We may have to punt on this for 1.5.0. |
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 needs a @cleanup decorator so global state does not leak.
|
I'm not going to close this one because it looks like it was close, but is there any chance it will get some movement? Someone who loves units will need to lead the charge... |
|
Closing this as not likely to be resurrected, but feel free to request a re-open. |
PolarAxes was not properly handling unitized data
This addresses an issue in #4897.