proplot-dev / proplot

🎨 A succinct matplotlib wrapper for making beautiful, publication-quality graphics
https://proplot.readthedocs.io
MIT License
1.07k stars 96 forks source link

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

Open jordanbrook opened 1 year ago

jordanbrook commented 1 year ago

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