Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 18dfa31 commit 44141d6Copy full SHA for 44141d6
1 file changed
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