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

Method _text

lib/matplotlib/category.py:160–166  ·  view source on GitHub ↗

Convert text values into utf-8 or ascii strings.

(value)

Source from the content-addressed store, hash-verified

158
159 @staticmethod
160 def _text(value):
161 """Convert text values into utf-8 or ascii strings."""
162 if isinstance(value, bytes):
163 value = value.decode(encoding='utf-8')
164 elif not isinstance(value, str):
165 value = str(value)
166 return value
167
168
169class UnitData:

Callers 2

format_ticksMethod · 0.95
axis_testFunction · 0.80

Calls

no outgoing calls

Tested by 1

axis_testFunction · 0.64