Skip to content

FIX: parasite axis2 demo #12261

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

Merged
merged 5 commits into from
Sep 26, 2018
Merged

FIX: parasite axis2 demo #12261

merged 5 commits into from
Sep 26, 2018

Conversation

abhinuvpitale
Copy link
Contributor

@abhinuvpitale abhinuvpitale commented Sep 25, 2018

PR Summary

Closes #12208

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@jklymak jklymak changed the title fix for #12208, for parasite axis2 demo FIX: parasite axis2 demo Sep 25, 2018
@jklymak
Copy link
Member

jklymak commented Sep 25, 2018

@abhinuvpitale Thanks so much for your contributions. I took the liberty of formatting your title and the start of your PR desc. We don't need the Issue # in the PR title, but a "closes #xxxxx" in the body of the PR description allows the automatic issue closing system to work. Thanks again!

@abhinuvpitale
Copy link
Contributor Author

@jklymak added flake8 corrections, I should hope that it passes the ci
thanks for change in title!

@abhinuvpitale
Copy link
Contributor Author

@jklymak not sure why travis-ci has failed on macos, can you help me with it?

@ImportanceOfBeingErnest ImportanceOfBeingErnest merged commit ed27408 into matplotlib:master Sep 26, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 26, 2018
dstansby added a commit that referenced this pull request Sep 26, 2018
…261-on-v3.0.x

Backport PR #12261 on branch v3.0.x (FIX:  parasite axis2 demo)
@abhinuvpitale abhinuvpitale deleted the patch-1 branch September 26, 2018 16:11
@ImportanceOfBeingErnest
Copy link
Member

@meeseeksdev backport to v2.2.4

@lumberbot-app
Copy link

lumberbot-app bot commented Sep 26, 2018

Something went wrong ... Please have a look at my logs.

It seem that the branch you are trying to backport to does not exists.

@ImportanceOfBeingErnest
Copy link
Member

@meeseeksdev backport to v2.2.x

@lumberbot-app
Copy link

lumberbot-app bot commented Sep 26, 2018

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v2.2.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 ed2740821c37b597e865e1483629e873c4488dc6
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #12261: FIX:  parasite axis2 demo'
  1. Push to a named branch :
git push YOURFORK v2.2.x:auto-backport-of-pr-12261-on-v2.2.x
  1. Create a PR against branch v2.2.x, I would have named this PR:

"Backport PR #12261 on branch v2.2.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

@ImportanceOfBeingErnest
Copy link
Member

I tried to backport to v2.2.x, because

but the suggested git cherry-pick -m1 ed2740821c37b597e865e1483629e873c4488dc6 fails with
error: mainline was specified but commit ed2740821c37b597e865e1483629e873c4488dc6 is not a merge.

At this point this is probably beyond my paygrade, but happy to continue with it if someone wants to talk me through.

@QuLogic
Copy link
Member

QuLogic commented Sep 26, 2018

It's because you did a squash merge, so there is only one parent (it's not a merge commit.) You don't need to specify -m1 in that case.

@Carreau
Copy link
Contributor

Carreau commented Sep 26, 2018

My Fault, I haven't implemented support for squash-merge into the bot. PR welcome.

ImportanceOfBeingErnest pushed a commit to ImportanceOfBeingErnest/matplotlib that referenced this pull request Sep 30, 2018
ImportanceOfBeingErnest pushed a commit to ImportanceOfBeingErnest/matplotlib that referenced this pull request Sep 30, 2018
* update to fix matplotlib#12208,typecasted locs to np array

* added test for matplotlib#12208

* Update test_axisartist_axislines.py

* Update test_axisartist_axislines.py

* flake8 corrections
@ImportanceOfBeingErnest
Copy link
Member

If I follow this further (leaving out -m1) and pushing to git push origin v2.2.x, it'll create a PR with some 21 commits and 14 changed files from all kinds of different authors, instead of only 1 commit (2 files) that this should include. Maybe YOURFORK should be something else? 🍴

@Carreau
Copy link
Contributor

Carreau commented Sep 30, 2018

21 commits and 14 changed files from all kinds of different authors

That seem wrong this PR is 5 commits, and when you squashed you only got 1, so you should only get one in the end:

 ~/dev/matplotlib[v2.2.x ✓] $ git checkout v2.2.x
Already on 'v2.2.x'
Your branch is up to date with 'origin/v2.2.x'.
 ~/dev/matplotlib[v2.2.x ✓] $ git pull
Already up to date.
 ~/dev/matplotlib[v2.2.x ✓] $ git cherry-pick ed2740821c37b597e865e1483629e873c4488dc6
error: could not apply ed2740821... FIX:  parasite axis2 demo (#12261)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
$ # Fix conflicts
$ git commit -a

And push that to whatever your fork is. I usually can't know what the name of the remote for your fork is, for me it's named github, for some it's origin.

I'm not sure what "something else" would be, it has to be interpreted by the person running the command.

@QuLogic
Copy link
Member

QuLogic commented Sep 30, 2018

When you tried to open a PR, was the base branch v2.2.x or master?

@ImportanceOfBeingErnest
Copy link
Member

When you tried to open a PR, was the base branch v2.2.x or master?

Ups.. 🤣 I guess one has to make this mistake once, to never do it again. It's all good now. Seems the problem is the web interface which is set to "master" by default even it you're pushing to another branch.

@QuLogic Does the newly created PR need new reviews or is it usual to just merge it directly after tests have been completed?

QuLogic added a commit that referenced this pull request Sep 30, 2018
…of-pr-12261-on-v2.2.x

Backport PR #12261: FIX:  parasite axis2 demo
@QuLogic QuLogic modified the milestones: v3.0.x, v2.2.4 Sep 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parasite axis2 demo now crashes with log x-axis
6 participants