MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / close

Method close

lib/matplotlib/backends/backend_svg.py:224–235  ·  view source on GitHub ↗

Close open elements, up to (and including) the element identified by the given identifier. Parameters ---------- id Element identifier, as returned by the :meth:`start` method.

(self, id)

Source from the content-addressed store, hash-verified

222 self.__write(f"</{tag}>\n")
223
224 def close(self, id):
225 """
226 Close open elements, up to (and including) the element identified
227 by the given identifier.
228
229 Parameters
230 ----------
231 id
232 Element identifier, as returned by the :meth:`start` method.
233 """
234 while len(self.__tags) > id:
235 self.end()
236
237 def element(self, tag, text=None, attrib=None, **extra):
238 """

Callers 2

finalizeMethod · 0.45
_write_metadataMethod · 0.45

Calls 1

endMethod · 0.95

Tested by

no test coverage detected