File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
"""
12
12
13
13
import warnings
14
+ from operator import itemgetter
15
+
14
16
import matplotlib .axes as maxes
15
17
from matplotlib .axes import Axes , rcParams
16
18
from matplotlib import cbook
@@ -244,16 +246,14 @@ def draw(self, renderer):
244
246
# Calculate projection of collections and zorder them
245
247
zlist = [(col .do_3d_projection (renderer ), col ) \
246
248
for col in self .collections ]
247
- zlist .sort ()
248
- zlist .reverse ()
249
+ zlist .sort (key = itemgetter (0 ), reverse = True )
249
250
for i , (z , col ) in enumerate (zlist ):
250
251
col .zorder = i
251
252
252
253
# Calculate projection of patches and zorder them
253
254
zlist = [(patch .do_3d_projection (renderer ), patch ) \
254
255
for patch in self .patches ]
255
- zlist .sort ()
256
- zlist .reverse ()
256
+ zlist .sort (key = itemgetter (0 ), reverse = True )
257
257
for i , (z , patch ) in enumerate (zlist ):
258
258
patch .zorder = i
259
259
You can’t perform that action at this time.
0 commit comments