8000 Merge branch 'master' into fillstyle_none · matplotlib/matplotlib@c40ba26 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c40ba26

Browse files
committed
Merge branch 'master' into fillstyle_none
2 parents c6e93d3 + 396a644 commit c40ba26

17 files changed

+2081
-63
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False):
200200
if angle:
201201
ctx.rotate (-angle * np.pi / 180)
202202
ctx.set_font_size (size)
203-
ctx.show_text (s.encode("utf-8"))
203+
if sys.version_info[0] < 3:
204+
ctx.show_text (s.encode("utf-8"))
205+
else:
206+
ctx.show_text (s)
204207
ctx.restore()
205208

206209
def _draw_mathtext(self, gc, x, y, s, prop, angle):

0 commit comments

Comments
 (0)
0