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

Skip to content

Commit bd11b22

Browse files
committed
Flake8 fixes
1 parent 1fbd5e2 commit bd11b22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,13 +673,16 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
673673
stream = []
674674
prev_font = curr_stream = None
675675
for item in _text_helpers.layout(s, font):
676-
ps_name = (item.ft_object.postscript_name.encode("ascii", "replace").decode("ascii"))
676+
ps_name = (item.ft_object.postscript_name
677+
.encode("ascii", "replace").decode("ascii"))
677678
if item.ft_object is not prev_font:
678679
if curr_stream:
679680
stream.append(curr_stream)
680681
prev_font = item.ft_object
681682
curr_stream = [ps_name, []]
682-
curr_stream[1].append((item.x, item.ft_object.get_glyph_name(item.glyph_idx)))
683+
curr_stream[1].append(
684+
(item.x, item.ft_object.get_glyph_name(item.glyph_idx))
685+
)
683686
# append the last entry
684687
stream.append(curr_stream)
685688

0 commit comments

Comments
 (0)