Skip to content

Error when passing keyword arguments like edgecolor and linewidth to Quiver function #381

Open
@jordanbrook

Description

@jordanbrook

Description

Absolutely love the project, thank you for all your efforts with it!
Issue: Keyword arguments for altering the appearance (e.g. edgecolor and linewidth) of quiver arrows appear not to be supported in the PlotAxes.quiver() function.

Steps to reproduce

import numpy as np
import proplot as plot
X = np.arange(-3, 3, 1)
Y = np.arange(-3, 3, 1)
U, V = np.meshgrid(X, Y)
fig, axs = plot.subplots()
axs.quiver(X, Y, U, V, edgecolor='r', linewidth = 1)
plot.show()

Expected behavior:
(output from matplotlib equivalent below)
matplotlib_quiver

Actual behavior:
Long traceback ending in:
AttributeError: 'Quiver' object has no property 'markeredgecolor'

Equivalent steps in matplotlib

import numpy as np
import matplotlib.pyplot as plt
X = np.arange(-3, 3, 1)
Y = np.arange(-3, 3, 1)
U, V = np.meshgrid(X, Y)
plt.quiver(X, Y, U, V, edgecolor='r', linewidth = 1)
plt.show()

Proplot version

3.4.3
0.9.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions