proplot icon indicating copy to clipboard operation
proplot copied to clipboard

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

Open jordanbrook opened this issue 3 years ago • 0 comments

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

jordanbrook avatar Aug 02 '22 00:08 jordanbrook