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

Skip to content

Help tool #9022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pep8 imports and unique axes with custom label
  • Loading branch information
Federico Ariza authored and fariza committed Apr 12, 2018
commit a06a80ba6ce7be1e2f956956742ef9de047f25f3
8 changes: 5 additions & 3 deletions lib/matplotlib/backend_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
import time
import warnings
from weakref import WeakKeyDictionary

import textwrap
import numpy as np

from matplotlib import rcParams
from matplotlib._pylab_helpers import Gcf
from matplotlib.table import Table
import textwrap
import matplotlib.cbook as cbook


Expand Down Expand Up @@ -1032,7 +1031,10 @@ def __init__(self, *args):
self.text_axes = None

def enable(self, *args):
self.text_axes = self.figure.add_axes((0, 0, 1, 1))
# Using custom axes label to prevent reuse of old axes
# https://github.com/matplotlib/matplotlib/issues/9024
self.text_axes = self.figure.add_axes((0, 0, 1, 1),
label='help_tool_axes')
table = Table(self.text_axes, bbox=[0, 0, 1, 1])
table.edges = 'B'
self.text_axes.add_table(table)
Expand Down