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

Skip to content

Commit 54237ea

Browse files
Dont open renderer group when returning early
1 parent 1034bb1 commit 54237ea

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
@@ -405,7 +405,7 @@ def _axmask(self):
405405

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

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

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

0 commit comments

Comments
 (0)