1313from matplotlib .path import Path
1414from matplotlib .mathtext import MathTextParser
1515from matplotlib .colors import colorConverter
16-
16+ from matplotlib import rcParams
1717
1818from matplotlib .widgets import SubplotTool
1919
@@ -225,7 +225,7 @@ def draw_if_interactive():
225225 it will be redrawn as soon as the event loop resumes via PyOS_InputHook.
226226 This function should be called after each draw event, even if
227227 matplotlib is not running interactively.
228- """
228+ """
229229 if matplotlib .is_interactive ():
230230 figManager = Gcf .get_active ()
231231 if figManager is not None :
@@ -330,9 +330,6 @@ def print_tiff(self, filename, *args, **kwargs):
330330 def print_gif (self , filename , * args , ** kwargs ):
331331 self ._print_bitmap (filename , * args , ** kwargs )
332332
333- def get_default_filetype (self ):
334- return 'png'
335-
336333 def new_timer (self , * args , ** kwargs ):
337334 """
338335 Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
@@ -357,9 +354,9 @@ def __init__(self, canvas, num):
357354 FigureManagerBase .__init__ (self , canvas , num )
358355 title = "Figure %d" % num
359356 _macosx .FigureManager .__init__ (self , canvas , title )
360- if matplotlib . rcParams ['toolbar' ]== 'classic' :
357+ if rcParams ['toolbar' ]== 'classic' :
361358 self .toolbar = NavigationToolbarMac (canvas )
362- elif matplotlib . rcParams ['toolbar' ]== 'toolbar2' :
359+ elif rcParams ['toolbar' ]== 'toolbar2' :
363360 self .toolbar = NavigationToolbar2Mac (canvas )
364361 else :
365362 self .toolbar = None
@@ -384,7 +381,7 @@ class NavigationToolbarMac(_macosx.NavigationToolbar):
384381
385382 def __init__ (self , canvas ):
386383 self .canvas = canvas
387- basedir = os .path .join (matplotlib . rcParams ['datapath' ], "images" )
384+ basedir = os .path .join (rcParams ['datapath' ], "images" )
388385 images = {}
389386 for imagename in ("stock_left" ,
390387 "stock_right" ,
@@ -453,7 +450,7 @@ def __init__(self, canvas):
453450 NavigationToolbar2 .__init__ (self , canvas )
454451
455452 def _init_toolbar (self ):
456- basedir = os .path .join (matplotlib . rcParams ['datapath' ], "images" )
453+ basedir = os .path .join (rcParams ['datapath' ], "images" )
457454 _macosx .NavigationToolbar2 .__init__ (self , basedir )
458455
459456 def draw_rubberband (self , event , x0 , y0 , x1 , y1 ):
0 commit comments