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

Skip to content

Commit 962210c

Browse files
Dont open renderer group when returning early
1 parent 5a89c74 commit 962210c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/mpl_toolkits/mplot3d/axis3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _axmask(self):
404404

405405
def _draw_ticks(self, renderer, edgep1, centers, deltas, highs,
406406
deltas_per_point, pos):
407-
ticks = self._ticks_to_draw
407+
ticks = self._ticks_to_draw # Set with _update_ticks() in axes3d.draw()
408408
n_ticks = len(ticks)
409409
if n_ticks == 0:
410410
return
@@ -627,12 +627,12 @@ def draw_grid(self, renderer):
627627
if not self.axes._draw_grid:
628628
return
629629

630-
renderer.open_group("grid3d", gid=self.get_gid())
631-
632-
ticks = self._ticks_to_draw
630+
ticks = self._ticks_to_draw # Set with _update_ticks() in axes3d.draw()
633631
if len(ticks) == 0:
634632
return
635633

634+
renderer.open_group("grid3d", gid=self.get_gid())
635+
636636
# Get general axis information:
637637
info = self._axinfo
638638
index = info["i"]

0 commit comments

Comments
 (0)