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

Skip to content

Commit 9405a1e

Browse files
committed
Fix bugs in unit-handling in axhspan and axvspan
svn path=/trunk/matplotlib/; revision=6377
1 parent a89f22b commit 9405a1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,7 +2880,7 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
28802880
self.transAxes, self.transData)
28812881

28822882
# process the unit information
2883-
self._process_unit_info( [xmin, xmax], [ymin, ymax], **kwargs )
2883+
self._process_unit_info( [xmin, xmax], [ymin, ymax], kwargs=kwargs )
28842884

28852885
# first we need to strip away the units
28862886
xmin, xmax = self.convert_xunits( [xmin, xmax] )
@@ -2934,7 +2934,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
29342934
self.transData, self.transAxes)
29352935

29362936
# process the unit information
2937-
self._process_unit_info( [xmin, xmax], [ymin, ymax], **kwargs )
2937+
self._process_unit_info( [xmin, xmax], [ymin, ymax], kwargs=kwargs )
29382938

29392939
# first we need to strip away the units
29402940
xmin, xmax = self.convert_xunits( [xmin, xmax] )

0 commit comments

Comments
 (0)