8000 fix gc.get_antialiased in backend_cairo.py · matplotlib/matplotlib@6d17a10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d17a10

Browse files
stevezhangstevezhang
authored andcommitted
fix gc.get_antialiased in backend_cairo.py
1 parent ac781f1 commit 6d17a10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ def set_antialiased(self, b):
309309
self.ctx.set_antialias(
310310
cairo.ANTIALIAS_DEFAULT if b else cairo.ANTIALIAS_NONE)
311311

312+
def get_antialiased(self):
313+
return self.ctx.get_antialias()
314+
312315
def set_capstyle(self, cs):
313316
self.ctx.set_line_cap(_api.check_getitem(self._capd, capstyle=cs))
314317
self._capstyle = cs

0 commit comments

Comments
 (0)
0