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

Skip to content

Commit 75f665d

Browse files
committed
image.py: change default image zorder 1 -> 0
svn path=/trunk/matplotlib/; revision=7960
1 parent 750692a commit 75f665d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/matplotlib/image.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from matplotlib.transforms import BboxBase
2828

2929
class _AxesImageBase(martist.Artist, cm.ScalarMappable):
30-
zorder = 1
30+
zorder = 0
3131
# map interpolation strings to module constants
3232
_interpd = {
3333
'nearest' : _image.NEAREST,
@@ -687,7 +687,7 @@ def set_alpha(self, alpha):
687687
self.update_dict['array'] = True
688688

689689
class FigureImage(martist.Artist, cm.ScalarMappable):
690-
zorder = 1
690+
zorder = 0
691691
def __init__(self, fig,
692692
cmap = None,
693693
norm = None,
@@ -805,7 +805,6 @@ class BboxImage(_AxesImageBase):
805805
"""
806806
The Image class whose size is determined by the given bbox.
807807
"""
808-
zorder = 1
809808
def __init__(self, bbox,
810809
cmap = None,
811810
norm = None,

0 commit comments

Comments
 (0)