We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f393802 + 6ba21a3 commit 1791022Copy full SHA for 1791022
lib/matplotlib/font_manager.py
@@ -24,6 +24,7 @@
24
# - 'light' is an invalid weight value, remove it.
25
26
from base64 import b64encode
27
+import copy
28
import dataclasses
29
from functools import lru_cache
30
from io import BytesIO
@@ -964,9 +965,7 @@ def set_math_fontfamily(self, fontfamily):
964
965
966
def copy(self):
967
"""Return a copy of self."""
- new = type(self)()
968
- vars(new).update(vars(self))
969
- return new
+ return copy.copy(self)
970
971
972
class _JSONEncoder(json.JSONEncoder):
0 commit comments