Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc32a7d2

Browse files
author
Federico Ariza
committed
pep8 imports and unique axes with custom label
1 parent9fa7d45 commitc32a7d2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎lib/matplotlib/backend_tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
frommatplotlibimportrcParams
1616
frommatplotlib._pylab_helpersimportGcf
1717
frommatplotlib.tableimportTable
18-
importtextwrap
1918
importmatplotlib.cbookascbook
19+
20+
importtextwrap
2021
fromweakrefimportWeakKeyDictionary
2122
importsix
2223
importtime
@@ -1030,7 +1031,10 @@ def __init__(self, *args):
10301031
self.text_axes=None
10311032

10321033
defenable(self,*args):
1033-
self.text_axes=self.figure.add_axes((0,0,1,1))
1034+
# Using custom axes label to prevent reuse of old axes
1035+
# https://github.com/matplotlib/matplotlib/issues/9024
1036+
self.text_axes=self.figure.add_axes((0,0,1,1),
1037+
label='help_tool_axes')
10341038
table=Table(self.text_axes,bbox=[0,0,1,1])
10351039
table.edges='B'
10361040
self.text_axes.add_table(table)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp