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

Method element

lib/matplotlib/backends/backend_svg.py:237–248  ·  view source on GitHub ↗

Add an entire element. This is the same as calling :meth:`start`, :meth:`data`, and :meth:`end` in sequence. The *text* argument can be omitted.

(self, tag, text=None, attrib=None, **extra)

Source from the content-addressed store, hash-verified

235 self.end()
236
237 def element(self, tag, text=None, attrib=None, **extra):
238 """
239 Add an entire element. This is the same as calling :meth:`start`,
240 :meth:`data`, and :meth:`end` in sequence. The *text* argument can be
241 omitted.
242 """
243 if attrib is None:
244 attrib = {}
245 self.start(tag, attrib, **extra)
246 if text:
247 self.data(text)
248 self.end(indent=False)
249
250 def flush(self):
251 """Flush the output stream."""

Callers 13

_write_metadataMethod · 0.80
_write_default_styleMethod · 0.80
_write_hatchesMethod · 0.80
_write_clipsMethod · 0.80
draw_pathMethod · 0.80
draw_markersMethod · 0.80
draw_path_collectionMethod · 0.80
draw_imageMethod · 0.80
_draw_text_as_pathMethod · 0.80

Calls 3

startMethod · 0.95
dataMethod · 0.95
endMethod · 0.95

Tested by

no test coverage detected