-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Makes eventplot legend work #7676
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
Can you also add a test to https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_axes.py ? something like @cleanup
def test_eventplot_legend():
# your code snippet from the bug report |
Can you rebase and squash the first two commits together? |
@@ -4871,3 +4871,8 @@ def test_scatter_color_masking(): | |||
assert_array_equal(facecolors[1], np.array([0, 0, 0, 1])) | |||
assert_array_equal(linecolors[1], np.array([0, 0, 0, 1])) | |||
assert linewidths[1] == 3 | |||
|
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.
One more blank line.
When you rebase, you need to force push ( |
Current coverage is 62.11% (diff: 100%)@@ master #7676 diff @@
==========================================
Files 174 174
Lines 56021 56021
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 34773 34795 +22
+ Misses 21248 21226 -22
Partials 0 0
|
Think this all went horrible wrong (I hate now git to its guts), how to best clean up this mess:
|
A new PR isn't necessary; just a rebase (and force push) will do. I can do that for you (you will need to reset your local copy.) |
I would say I have done enough damage already and ask you kindly to do the rebase and force/push. |
Fixes issue matplotlib#7662
BTW, your name on commits is sometimes |
nepix32 shall be |
562658c
to
ad74d47
Compare
I updated the PR; on your computer, $ git status
# Check for any changes you want to save (commit to a branch or stash them)
$ git fetch origin
$ git checkout nepix32-patch-1
$ git reset --hard origin/nepix32-patch-1 |
Have done everything down to |
I replaced the branch on your GitHub fork and the commands I gave above reset your local copy to match the fork. Everything should be in sync (as far as this PR/branch is concerned.) |
Ok, I see, was looking at the forks |
$ git checkout master
$ git reset --hard upstream/master
$ git push --force origin master should get your local copy of In the future, (or now just to be sure you have the latest commit)
should be a fast-forward merge that just moves |
Hmmm... still have changes in |
Feel free to stop by our Gitter room for some help. |
Looks good to me. And adds tests to previously untested code path! |
Thanks for the patch! |
Fixes issue #7662