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 1111"""
1212
1313import warnings
14+ from operator import itemgetter
15+
1416import matplotlib .axes as maxes
1517from matplotlib .axes import Axes , rcParams
1618from matplotlib import cbook
@@ -244,16 +246,14 @@ def draw(self, renderer):
244246 # Calculate projection of collections and zorder them
245247 zlist = [(col .do_3d_projection (renderer ), col ) \
246248 for col in self .collections ]
247- zlist .sort ()
248- zlist .reverse ()
249+ zlist .sort (key = itemgetter (0 ), reverse = True )
249250 for i , (z , col ) in enumerate (zlist ):
250251 col .zorder = i
251252
252253 # Calculate projection of patches and zorder them
253254 zlist = [(patch .do_3d_projection (renderer ), patch ) \
254255 for patch in self .patches ]
255- zlist .sort ()
256- zlist .reverse ()
256+ zlist .sort (key = itemgetter (0 ), reverse = True )
257257 for i , (z , patch ) in enumerate (zlist ):
258258 patch .zorder = i
259259
You can’t perform that action at this time.
0 commit comments