Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b676065

Browse files
committed
Add unit support to stem
1 parent a66e5c3 commit b676065

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,9 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None,
23642364
x = y
23652365
y = np.asarray(args[0], dtype=float)
23662366
args = args[1:]
2367+
self._process_unit_info(xdata=x, ydata=y, kwargs=kwargs)
2368+
x = self.convert_xunits(x)
2369+
y = self.convert_yunits(y)
23672370

23682371
# defaults for formats
23692372
if linefmt is None:

0 commit comments

Comments
 (0)