Skip to content

Navigation Menu

Sign in
Appearance settings

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 c0d3f96

Browse filesBrowse files
committed
Document the removal of alphaStateObject
And name its successor with an underline prefix.
1 parent 14b089f commit c0d3f96
Copy full SHA for c0d3f96

File tree

Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed

‎doc/api/next_api_changes/2019-06-05-JKS.rst

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/2019-06-05-JKS.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ The following members of ``matplotlib.backends.backend_pdf.PdfFile`` were remove
88
- ``nextAlphaState``
99
- ``nextHatch``
1010
- ``nextImage``
11+
- ``alphaStateObject``

‎lib/matplotlib/backends/backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def __init__(self, filename, metadata=None):
481481
self.pagesObject = self.reserveObject('pages')
482482
self.pageList = []
483483
self.fontObject = self.reserveObject('fonts')
484-
self.extGStateObject = self.reserveObject('extended graphics states')
484+
self._extGStateObject = self.reserveObject('extended graphics states')
485485
self.hatchObject = self.reserveObject('tiling patterns')
486486
self.gouraudObject = self.reserveObject('Gouraud triangles')
487487
self.XObjectObject = self.reserveObject('external objects')
@@ -546,7 +546,7 @@ def __init__(self, filename, metadata=None):
546546
# ColorSpace Pattern Shading Properties
547547
resources = {'Font': self.fontObject,
548548
'XObject': self.XObjectObject,
549-
'ExtGState': self.extGStateObject,
549+
'ExtGState': self._extGStateObject,
550550
'Pattern': self.hatchObject,
551551
'Shading': self.gouraudObject,
552552
'ProcSet': procsets}
@@ -1274,7 +1274,7 @@ def _soft_mask_state(self, smask):
12741274

12751275
def writeExtGSTates(self):
12761276
self.writeObject(
1277-
self.extGStateObject,
1277+
self._extGStateObject,
12781278
dict(itertools.chain(
12791279
self.alphaStates.values(),
12801280
self._soft_mask_states.values()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.