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

Skip to content

Commit 3307482

Browse files
committed
added backend_fallback to traited config
svn path=/trunk/matplotlib/; revision=5942
1 parent 15e3aa7 commit 3307482

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/config/mplconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class MPLConfig(TConfig):
6464

6565
class backend(TConfig):
6666
use = T.Trait('Agg', mplT.BackendHandler())
67+
fallback = T.Trait(True, mplT.BoolHandler())
6768

6869
class cairo(TConfig):
6970
format = T.Trait('png', 'png', 'ps', 'pdf', 'svg')
@@ -284,6 +285,7 @@ def __init__(self, tconfig):
284285

285286
self.tconfig_map = {
286287
'backend' : (self.tconfig.backend, 'use'),
288+
'backend_fallback' : (self.tconfig.backend, 'fallback'),
287289
'numerix' : (self.tconfig, 'numerix'),
288290
'maskedarray' : (self.tconfig, 'maskedarray'),
289291
'toolbar' : (self.tconfig, 'toolbar'),

0 commit comments

Comments
 (0)