@@ -5770,7 +5770,7 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None,
57705770 marker_obj .get_transform ())
57715771 if not marker_obj .is_filled ():
57725772 edgecolors = 'face'
5773-
5773+
57745774 collection = mcoll .PathCollection (
57755775 (path ,), scales ,
57765776 facecolors = colors ,
@@ -8214,19 +8214,16 @@ def matshow(self, Z, **kwargs):
82148214 *Z* anything that can be interpreted as a 2-D array
82158215
82168216 kwargs all are passed to :meth:`~matplotlib.axes.Axes.imshow`.
8217- :meth:`matshow` sets defaults for *extent*, *origin*,
8218- *interpolation*, and *aspect*; use care in overriding the
8219- *extent* and *origin* kwargs, because they interact. (Also,
8220- if you want to change them, you probably should be using
8221- imshow directly in your own version of matshow.)
8217+ :meth:`matshow` sets defaults for *origin*,
8218+ *interpolation*, and *aspect*; if you want row zero to
8219+ be at the bottom instead of the top, you can set the *origin*
8220+ kwarg to "lower".
82228221
82238222 Returns: an :class:`matplotlib.image.AxesImage` instance.
82248223 '''
8225- Z = np .asarray (Z )
8224+ Z = np .asanyarray (Z )
82268225 nr , nc = Z .shape
8227- extent = [- 0.5 , nc - 0.5 , nr - 0.5 , - 0.5 ]
8228- kw = {'extent' : extent ,
8229- 'origin' : 'upper' ,
8226+ kw = {'origin' : 'upper' ,
82308227 'interpolation' : 'nearest' ,
82318228 'aspect' : 'equal' } # (already the imshow default)
82328229 kw .update (kwargs )
0 commit comments