Show More
@@ -3371,7 +3371,7 b' Defaulting color scheme to \'NoColor\'"""' | |||||
3371 | Parameters |
|
3371 | Parameters | |
3372 | ---------- |
|
3372 | ---------- | |
3373 | guiname : optional |
|
3373 | guiname : optional | |
3374 | One of the valid arguments to the %gui magic ('qt', 'wx', 'gtk' or |
|
3374 | One of the valid arguments to the %gui magic ('qt', 'wx', 'gtk', 'osx' or | |
3375 | 'tk'). If given, the corresponding Matplotlib backend is used, |
|
3375 | 'tk'). If given, the corresponding Matplotlib backend is used, | |
3376 | otherwise matplotlib's default (which you can override in your |
|
3376 | otherwise matplotlib's default (which you can override in your | |
3377 | matplotlib config file) is used. |
|
3377 | matplotlib config file) is used. |
@@ -28,6 +28,7 b" GUI_QT = 'qt'" | |||||
28 | GUI_QT4 = 'qt4' |
|
28 | GUI_QT4 = 'qt4' | |
29 | GUI_GTK = 'gtk' |
|
29 | GUI_GTK = 'gtk' | |
30 | GUI_TK = 'tk' |
|
30 | GUI_TK = 'tk' | |
|
31 | GUI_OSX = 'osx' | |||
31 |
|
32 | |||
32 | #----------------------------------------------------------------------------- |
|
33 | #----------------------------------------------------------------------------- | |
33 | # Utility classes |
|
34 | # Utility classes | |
@@ -310,6 +311,7 b' def enable_gui(gui=None):' | |||||
310 | one. |
|
311 | one. | |
311 | """ |
|
312 | """ | |
312 | guis = {None: clear_inputhook, |
|
313 | guis = {None: clear_inputhook, | |
|
314 | GUI_OSX: lambda app=False: None, | |||
313 | GUI_TK: enable_tk, |
|
315 | GUI_TK: enable_tk, | |
314 | GUI_GTK: enable_gtk, |
|
316 | GUI_GTK: enable_gtk, | |
315 | GUI_WX: enable_wx, |
|
317 | GUI_WX: enable_wx, |
@@ -30,6 +30,7 b" backends = {'tk': 'TkAgg'," | |||||
30 | 'wx': 'WXAgg', |
|
30 | 'wx': 'WXAgg', | |
31 | 'qt': 'Qt4Agg', # qt3 not supported |
|
31 | 'qt': 'Qt4Agg', # qt3 not supported | |
32 | 'qt4': 'Qt4Agg', |
|
32 | 'qt4': 'Qt4Agg', | |
|
33 | 'osx': 'MacOSX', | |||
33 | 'inline' : 'module://IPython.zmq.pylab.backend_inline'} |
|
34 | 'inline' : 'module://IPython.zmq.pylab.backend_inline'} | |
34 |
|
35 | |||
35 | #----------------------------------------------------------------------------- |
|
36 | #----------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now