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 199952b + 44141d6 commit 2de5c33Copy full SHA for 2de5c33
lib/matplotlib/font_manager.py
@@ -899,7 +899,9 @@ def set_size(self, size):
899
size = float(size)
900
except ValueError:
901
if size is not None and size not in font_scalings:
902
- raise ValueError("size is invalid")
+ raise ValueError(
903
+ "Size is invalid. Valid font size are " + ", ".join(
904
+ str(i) for i in font_scalings.keys()))
905
self._size = size
906
907
def set_file(self, file):
0 commit comments