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

Skip to content

Commit a6ec4e5

Browse files
committed
some pylab namespace fixes
svn path=/trunk/matplotlib/; revision=747
1 parent f2bf24f commit a6ec4e5

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/matplotlib/backends/backend_gdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def fn_name(): return sys._getframe(1).f_code.co_name
1515

1616
from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
1717
FigureManagerBase, FigureCanvasBase, error_msg
18-
from matplotlib._matlab_helpers import Gcf
18+
from matplotlib._pylab_helpers import Gcf
1919
from matplotlib.figure import Figure
2020
from matplotlib.mathtext import math_parse_s_ft2font
2121

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from matplotlib.figure import Figure
1111
from matplotlib.font_manager import fontManager
1212
from matplotlib.ft2font import FT2Font
13-
from matplotlib._matlab_helpers import Gcf
13+
from matplotlib._pylab_helpers import Gcf
1414
from matplotlib import rcParams
1515

1616
try: from matplotlib.mathtext import math_parse_s_ft2font_svg

lib/matplotlib/backends/backend_wx.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def write(self, msg):
153153
from matplotlib.backend_bases import RendererBase, GraphicsContextBase,\
154154
FigureCanvasBase, FigureManagerBase, error_msg, NavigationToolbar2, \
155155
MplEvent, cursors
156-
from matplotlib._matlab_helpers import Gcf
156+
from matplotlib._pylab_helpers import Gcf
157157
from matplotlib.artist import Artist
158158
from matplotlib.cbook import exception_to_str
159159
from matplotlib.figure import Figure
@@ -1141,8 +1141,8 @@ def _onMouseWheel(self, evt):
11411141

11421142
########################################################################
11431143
#
1144-
# The following functions and classes are for matlab compatibility
1145-
# mode (matplotlib.matlab) and implement figure managers, etc...
1144+
# The following functions and classes are for pylab compatibility
1145+
# mode (matplotlib.pylab) and implement figure managers, etc...
11461146
#
11471147
########################################################################
11481148

@@ -1191,7 +1191,7 @@ def new_figure_manager(num, *args, **kwargs):
11911191
"""
11921192
Create a new figure manager instance
11931193
"""
1194-
# in order to expose the Figure constructor to the matlab
1194+
# in order to expose the Figure constructor to the pylab
11951195
# interface we need to create the figure here
11961196
DEBUG_MSG("new_figure_manager()", 3, None)
11971197
fig = Figure(*args, **kwargs)
@@ -1280,7 +1280,7 @@ class FigureManagerWx(FigureManagerBase):
12801280
It is instantiated by GcfWx whenever a new figure is created. GcfWx is
12811281
responsible for managing multiple instances of FigureManagerWx.
12821282
1283-
NB: FigureManagerBase is found in _matlab_helpers
1283+
NB: FigureManagerBase is found in _pylab_helpers
12841284
"""
12851285
def __init__(self, canvas, num, frame):
12861286
DEBUG_MSG("__init__()", 1, self)

0 commit comments

Comments
 (0)