13
13
from matplotlib .path import Path
14
14
from matplotlib .mathtext import MathTextParser
15
15
from matplotlib .colors import colorConverter
16
-
16
+ from matplotlib import rcParams
17
17
18
18
from matplotlib .widgets import SubplotTool
19
19
@@ -225,7 +225,7 @@ def draw_if_interactive():
225
225
it will be redrawn as soon as the event loop resumes via PyOS_InputHook.
226
226
This function should be called after each draw event, even if
227
227
matplotlib is not running interactively.
228
- """
228
+ """
229
229
if matplotlib .is_interactive ():
230
230
figManager = Gcf .get_active ()
231
231
if figManager is not None :
@@ -330,9 +330,6 @@ def print_tiff(self, filename, *args, **kwargs):
330
330
def print_gif (self , filename , * args , ** kwargs ):
331
331
self ._print_bitmap (filename , * args , ** kwargs )
332
332
333
- def get_default_filetype (self ):
334
- return 'png'
335
-
336
333
def new_timer (self , * args , ** kwargs ):
337
334
"""
338
335
Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
@@ -357,9 +354,9 @@ def __init__(self, canvas, num):
357
354
FigureManagerBase .__init__ (self , canvas , num )
358
355
title = "Figure %d" % num
359
356
_macosx .FigureManager .__init__ (self , canvas , title )
360
- if matplotlib . rcParams ['toolbar' ]== 'classic' :
357
+ if rcParams ['toolbar' ]== 'classic' :
361
358
self .toolbar = NavigationToolbarMac (canvas )
362
- elif matplotlib . rcParams ['toolbar' ]== 'toolbar2' :
359
+ elif rcParams ['toolbar' ]== 'toolbar2' :
363
360
self .toolbar = NavigationToolbar2Mac (canvas )
364
361
else :
365
362
self .toolbar = None
@@ -384,7 +381,7 @@ class NavigationToolbarMac(_macosx.NavigationToolbar):
384
381
385
382
def __init__ (self , canvas ):
386
383
self .canvas = canvas
387
- basedir = os .path .join (matplotlib . rcParams ['datapath' ], "images" )
384
+ basedir = os .path .join (rcParams ['datapath' ], "images" )
388
385
images = {}
389
386
for imagename in ("stock_left" ,
390
387
"stock_right" ,
@@ -453,7 +450,7 @@ def __init__(self, canvas):
453
450
NavigationToolbar2 .__init__ (self , canvas )
454
451
455
452
def _init_toolbar (self ):
456
- basedir = os .path .join (matplotlib . rcParams ['datapath' ], "images" )
453
+ basedir = os .path .join (rcParams ['datapath' ], "images" )
457
454
_macosx .NavigationToolbar2 .__init__ (self , basedir )
458
455
459
456
def draw_rubberband (self , event , x0 , y0 , x1 , y1 ):
0 commit comments