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

Method add

lib/matplotlib/backends/_backend_pdf_ps.py:143–160  ·  view source on GitHub ↗

Add a mapping to this instance. Parameters ---------- charcode : CharacterCodeType The character code to record. glyph : GlyphIndexType The corresponding glyph index to record. subset : int The subset in which the

(self, charcode: str, glyph_index: GlyphIndexType, subset: int,
            subset_charcode: CharacterCodeType)

Source from the content-addressed store, hash-verified

141 return self._inverse[(subset, subset_charcode)]
142
143 def add(self, charcode: str, glyph_index: GlyphIndexType, subset: int,
144 subset_charcode: CharacterCodeType) -> None:
145 """
146 Add a mapping to this instance.
147
148 Parameters
149 ----------
150 charcode : CharacterCodeType
151 The character code to record.
152 glyph : GlyphIndexType
153 The corresponding glyph index to record.
154 subset : int
155 The subset in which the subset character code resides.
156 subset_charcode : CharacterCodeType
157 The subset character code within the above subset.
158 """
159 self._forward[(charcode, glyph_index)] = (subset, subset_charcode)
160 self._inverse[(subset, subset_charcode)] = (charcode, glyph_index)
161
162
163class CharacterTracker:

Callers 15

check_output_base_nameFunction · 0.45
add_web_socketMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
_single_shot_timerMethod · 0.45
track_glyphMethod · 0.45
mpl.jsFile · 0.45
dFunction · 0.45
_set_artist_propsMethod · 0.45
test_clip_path_ids_reuseFunction · 0.45

Calls

no outgoing calls

Tested by 7

test_clip_path_ids_reuseFunction · 0.36
test_rcparam_stubsFunction · 0.36
callFunction · 0.36
test_get_font_namesFunction · 0.36