Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Closed
Labels
Description
Bug report
Bug summary
I would expect thatAxes.quiver(transform=None) would behave the same as leaving out the kwargtransform (None implying default). However this is not the case. Instead the default for a missing transform isAxes.transData.
As far as I understand, there is no reasonable semantics of an explicittransform=None here (except for 'use default'). It's probably an unintended implementation detail.
I therefore propose to change the behavior ofAxes.quiver(transform=None) to be the same as leaving out the kwarg. This would allow further code simplification with explicit kwargs (#11145).
Code for reproduction
import matplotlib.pyplot as pltimport numpy as npX = np.arange(-10, 10, 1)Y = np.arange(-10, 10, 1)U, V = np.meshgrid(X, Y)fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(12, 3))ax1.quiver(X, Y, U, V)ax2.quiver(X, Y, U, V, transform=None)ax3.quiver(X, Y, U, V, transform=ax2.transData)plt.show()Expected: All there Axes should be equal.
