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

Skip to content

Commit 38650ad

Browse files
committed
Remove whitespace in backend_cairo
1 parent 8026851 commit 38650ad

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

lib/matplotlib/backends/backend_cairo.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,17 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
183183
ctx.select_font_face (prop.get_name(),
184184
self.fontangles [prop.get_style()],
185185
self.fontweights[prop.get_weight()])
186-
186+
187187
size = prop.get_size_in_points() * self.dpi / 72.0
188-
188+
189189
ctx.save()
190190
if angle:
191191
ctx.rotate (-angle * np.pi / 180)
192192
ctx.set_font_size (size)
193193
if sys.version_info[0] < 3:
194-
ctx.show_text (s.encode("utf-8"))
194+
ctx.show_text(s.encode("utf-8"))
195195
else:
196-
ctx.show_text (s)
196+
ctx.show_text(s)
197197
ctx.restore()
198198

199199
def _draw_mathtext(self, gc, x, y, s, prop, angle):
@@ -211,19 +211,19 @@ def _draw_mathtext(self, gc, x, y, s, prop, angle):
211211
for font, fontsize, s, ox, oy in glyphs:
212212
ctx.new_path()
213213
ctx.move_to(ox, oy)
214-
214+
215215
fontProp = ttfFontProperty(font)
216216
ctx.save()
217217
ctx.select_font_face (fontProp.name,
218218
self.fontangles [fontProp.style],
219219
self.fontweights[fontProp.weight])
220-
220+
221221
size = fontsize * self.dpi / 72.0
222222
ctx.set_font_size(size)
223223
if sys.version_info[0] < 3:
224-
ctx.show_text (s.encode("utf-8"))
224+
ctx.show_text(s.encode("utf-8"))
225225
else:
226-
ctx.show_text (s)
226+
ctx.show_text(s)
227227
ctx.restore()
228228

229229
for ox, oy, w, h in rects:

0 commit comments

Comments
 (0)