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

Skip to content

Commit 4fa8a0a

Browse files
author
Ulrich Dobramysl
committed
Correct PEP8 violations.
1 parent 9f77885 commit 4fa8a0a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ def __init__(self, filename):
480480

481481
self.paths = []
482482

483-
self.pageAnnotations = [] # A list of annotations for the
484-
# current page
483+
self.pageAnnotations = [] # A list of annotations for the
484+
# current page
485485

486486
# The PDF spec recommends to include every procset
487487
procsets = [Name(x)
@@ -526,7 +526,7 @@ def newPage(self, width, height):
526526
# Clear the list of annotations for the next page
527527
self.pageAnnotations = []
528528

529-
def newTextnote(self, text, positionRect = [-100, -100, 0, 0]):
529+
def newTextnote(self, text, positionRect=[-100, -100, 0, 0]):
530530
# Create a new annotation of type text
531531
theNote = {'Type': Name('Annot'),
532532
'Subtype': Name('Text'),
@@ -2469,6 +2469,7 @@ def attach_note(self, text):
24692469
"""
24702470
self._file.newTextnote(text)
24712471

2472+
24722473
class FigureCanvasPdf(FigureCanvasBase):
24732474
"""
24742475
The canvas the figure renders into. Calls the draw and print fig

0 commit comments

Comments
 (0)