-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
fix for #1235 #2857
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
fix for #1235 #2857
Conversation
@pelson Can you take a look at this? iirc you are the current legend expert. Do you think this can make in it for 1.4? |
@wmak - would you be able to add a test.
You write a bit of documentation and you get branded an expert for life 😄 @tacaswell - we've not cut a release candidate so there is no reason we can't put it in if we're happy. I'm just a little concerned about the use of _offsets on the axes collections and implicit assumption that they are all making use of transData (given my limited collection wisdom, I don't know if that is reasonable or not, but I'm tempted to try this out on something that doesn't use
Which will put a point at [30, 0]. The question then is, is the legend computation taking this into account... |
I'm not worried so much about release candidate rules, but dev time to review. Hopefully this weekend I will get an email sent out to the devel list with list of what needs to be done and a time line to cut a release candidate. |
@pelson sorry I'm quite new to this, would you want comprehensive testing? Or would one or two test cases be sufficient? |
One or two tests would be fine. The test should fail with out this PR, but pass with it and should fail if we break this feature in the future. |
I'm looking into creating the testcases, and I notice that there's an image comparison being performed for testing automatic legend creation (ie the ones in |
Run the tests locally (which will fail), but will save the output. Move the results to the expected image directory and add them to the repository. The next time you run the tests they should pass. |
Trying to take collections into account is a nice idea, but I think that this implementation will work only under unduly restricted circumstances. It seems to be assuming that each item in the collection has negligible size, and that the |
@wmak Are you still interested in working on this? |
@pelson @efiring @tacaswell Seems this PR was put forth by a group of students as part of a university course in 2014. see: http://www.utsc.utoronto.ca/~atafliovich/cscd01/ @wmak may unlikely to follow up on this PR anymore as he has since graduated. I'm also taking the same course in question for the 2016 semester. I'm part of a team of students looking for bugs/features to take on; and we'll happily take over this PR. I'm pretty much active on GitHub, so I can, and will definitely follow up on this PR till it's merged; even after I've finished the course 😄 |
Yes please. 👍 for your community spirit. Contributions very welcome! |
This would actually be very important to have for the upcoming v2.0 release, as it will have "best" as default. |
Replaced by #6110. |
Fix for #1235, legend box not taking points into account.