Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce9b48c

Browse files
authored
Merge pull request #13232 from anntzer/textpath-kwargs
Fix incorrect kwarg being passed to TextPath.
2 parents 8f137c3 + 5f240e4 commit ce9b48c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/markers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,7 @@ def _set_mathtext_path(self):
393393

394394
# again, the properties could be initialised just once outside
395395
# this function
396-
# Font size is irrelevant here, it will be rescaled based on
397-
# the drawn size later
398-
props = FontProperties(size=1.0)
399-
text = TextPath(xy=(0, 0), s=self.get_marker(), fontproperties=props,
396+
text = TextPath(xy=(0, 0), s=self.get_marker(),
400397
usetex=rcParams['text.usetex'])
401398
if len(text.vertices) == 0:
402399
return

0 commit comments

Comments
 (0)