Skip to content

Commit 0d6cd40

Browse files
committed
MNT: enable unpacking on 2D inputs
1 parent c454983 commit 0d6cd40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5641,15 +5641,15 @@ def pcolorfast(self, *args, **kwargs):
56415641
self.autoscale_view(tight=True)
56425642
return ret
56435643

5644-
#@unpack_labeled_data() # takes 2d data :-(
5644+
@unpack_labeled_data()
56455645
def contour(self, *args, **kwargs):
56465646
if not self._hold:
56475647
self.cla()
56485648
kwargs['filled'] = False
56495649
return mcontour.QuadContourSet(self, *args, **kwargs)
56505650
contour.__doc__ = mcontour.QuadContourSet.contour_doc
56515651

5652-
#@unpack_labeled_data() # takes 2d data :-(
5652+
@unpack_labeled_data()
56535653
def contourf(self, *args, **kwargs):
56545654
if not self._hold:
56555655
self.cla()

0 commit comments

Comments
 (0)