Skip to content

Issue # 11526 - keyword arguments for quiver/barb #11798

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

Closed
wants to merge 1 commit into from
Closed

Issue # 11526 - keyword arguments for quiver/barb #11798

wants to merge 1 commit into from

Conversation

zhaowei-wang
Copy link

Re-factor _parse_args for quiver/barb to handle the case when keyword arguements are used instead of positional arguements. If both are given at the same time, positional will be chosen by default.

Test code:

import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
import numpy as np
from numpy import ma

x, y, u, v = 0, 0, .01, .02

plt.quiver(X=x, Y=y, U=u, V=v, units='xy', scale=1)
plt.figure()
plt.quiver(x, y, u, v, units='xy', scale=1)
plt.show()

… arguements are used instead of positional arguements. If both are given at the same time, positional will be chosen by default.
@ImportanceOfBeingErnest
Copy link
Member

xref: This refers to issue #11526. Similar work is being done in #11656.

@jklymak
Copy link
Member

jklymak commented Aug 4, 2018

Thanks for your contribution! I'm going to close in favour of #11656. If you have more to contribute to this issue, then please do it there. If that PR is not tended by the original author, feel free to ping and we will close and can open a new PR or re-open this one.

@jklymak jklymak closed this Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants