Skip to content

Commit a0d9f90

Browse files
Explain why we attach render depth to
the figure...
1 parent 707e510 commit a0d9f90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

matplotview/_view_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def _init_vars(
142142
raise ValueError(f"The filter function must be a callable!")
143143

144144
self.__view_axes = axes_to_view
145+
# The current render depth is stored in the figure, so the number
146+
# of recursive draws is even in the case of multiple axes drawing
147+
# each other in the same figure.
145148
self.figure._current_render_depth = getattr(
146149
self.figure, "_current_render_depth", 0
147150
)

0 commit comments

Comments
 (0)