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

Method comment

lib/matplotlib/backends/backend_svg.py:171–182  ·  view source on GitHub ↗

Add a comment to the output stream. Parameters ---------- comment : str Comment text.

(self, comment)

Source from the content-addressed store, hash-verified

169 return len(self.__tags) - 1
170
171 def comment(self, comment):
172 """
173 Add a comment to the output stream.
174
175 Parameters
176 ----------
177 comment : str
178 Comment text.
179 """
180 self.__flush()
181 self.__write(self.__indentation[:len(self.__tags)])
182 self.__write(f"<!-- {_escape_comment(comment)} -->\n")
183
184 def data(self, text):
185 """

Callers 2

_draw_text_as_pathMethod · 0.80
_draw_text_as_textMethod · 0.80

Calls 2

__flushMethod · 0.95
_escape_commentFunction · 0.85

Tested by

no test coverage detected