In [1]: import matplotlib In [2]: from matplotlib import pyplot as plt In [5]: f=plt.figure(figsize=[232,232],dpi=100) In [6]: f.show() Jan 5 08:22:26 device-2559de python[22820] : kCGErrorRangeCheck: CGSNewWindowWithOpaqueShape: Cannot create window Jan 5 08:22:26 device-2559de python[22820] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. 2013-01-05 08:22:26.475 Python[22820:1507] An uncaught exception was raised 2013-01-05 08:22:26.487 Python[22820:1507] Error (1007) creating CGSWindow on line 263 2013-01-05 08:22:26.600 Python[22820:1507] ( 0 CoreFoundation 0x00007fff935a8f56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff99bbdd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff935a8d8a +[NSException raise:format:arguments:] + 106 3 CoreFoundation 0x00007fff935a8d14 +[NSException raise:format:] + 116 4 AppKit 0x00007fff924ec16f _NSCreateWindowWithOpaqueShape2 + 755 5 AppKit 0x00007fff9243a6c5 -[NSWindow _commonAwake] + 1875 6 AppKit 0x00007fff923b7287 -[NSWindow _makeKeyRegardlessOfVisibility] + 85 7 AppKit 0x00007fff923b7207 -[NSWindow makeKeyAndOrderFront:] + 27 8 _macosx.so 0x000000010562294f FigureManager_show + 73 9 Python 0x00000001034d4b58 PyEval_EvalFrameEx + 13318 10 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 11 Python 0x00000001034d7e6c PyEval_EvalCode + 341 12 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 13 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 14 Python 0x00000001034d7d4d PyEval_EvalCode + 54 15 Python 0x00000001034d231d PyEval_EvalFrameEx + 3019 16 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 17 Python 0x00000001034d7e6c PyEval_EvalCode + 341 18 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 19 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 20 Python 0x00000001034d7e6c PyEval_EvalCode + 341 21 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 22 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 23 Python 0x00000001034d7e6c PyEval_EvalCode + 341 24 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 25 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 26 Python 0x00000001034d7e6c PyEval_EvalCode + 341 27 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 28 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 29 Python 0x00000001034d7e6c PyEval_EvalCode + 341 30 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 31 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 32 Python 0x00000001034d7e6c PyEval_EvalCode + 341 33 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 34 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 35 Python 0x00000001034d7e6c PyEval_EvalCode + 341 36 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 37 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 38 Python 0x00000001034d7d4d PyEval_EvalCode + 54 39 Python 0x00000001034ef08f Py_CompileString + 62 40 Python 0x00000001034ef14f PyRun_FileExFlags + 157 41 Python 0x00000001034f02a2 PyRun_SimpleFileExFlags + 392 42 Python 0x00000001035002af Py_Main + 2715 43 Python 0x0000000103449e88 Python + 3720 44 ??? 0x0000000000000002 0x0 + 2 ) 2013-01-05 08:22:26.600 Python[22820:1507] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1007) creating CGSWindow on line 263' *** First throw call stack: ( 0 CoreFoundation 0x00007fff935a8f56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff99bbdd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff935a8d8a +[NSException raise:format:arguments:] + 106 3 CoreFoundation 0x00007fff935a8d14 +[NSException raise:format:] + 116 4 AppKit 0x00007fff924ec16f _NSCreateWindowWithOpaqueShape2 + 755 5 AppKit 0x00007fff9243a6c5 -[NSWindow _commonAwake] + 1875 6 AppKit 0x00007fff923b7287 -[NSWindow _makeKeyRegardlessOfVisibility] + 85 7 AppKit 0x00007fff923b7207 -[NSWindow makeKeyAndOrderFront:] + 27 8 _macosx.so 0x000000010562294f FigureManager_show + 73 9 Python 0x00000001034d4b58 PyEval_EvalFrameEx + 13318 10 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 11 Python 0x00000001034d7e6c PyEval_EvalCode + 341 12 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 13 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 14 Python 0x00000001034d7d4d PyEval_EvalCode + 54 15 Python 0x00000001034d231d PyEval_EvalFrameEx + 3019 16 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 17 Python 0x00000001034d7e6c PyEval_EvalCode + 341 18 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 19 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 20 Python 0x00000001034d7e6c PyEval_EvalCode + 341 21 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 22 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 23 Python 0x00000001034d7e6c PyEval_EvalCode + 341 24 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 25 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 26 Python 0x00000001034d7e6c PyEval_EvalCode + 341 27 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 28 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 29 Python 0x00000001034d7e6c PyEval_EvalCode + 341 30 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 31 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 32 Python 0x00000001034d7e6c PyEval_EvalCode + 341 33 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 34 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 35 Python 0x00000001034d7e6c PyEval_EvalCode + 341 36 Python 0x00000001034d4e0a PyEval_EvalFrameEx + 14008 37 Python 0x00000001034d7cd8 PyEval_EvalCodeEx + 1996 38 Python 0x00000001034d7d4d PyEval_EvalCode + 54 39 Python 0x00000001034ef08f Py_CompileString + 62 40 Python 0x00000001034ef14f PyRun_FileExFlags + 157 41 Python 0x00000001034f02a2 PyRun_SimpleFileExFlags + 392 42 Python 0x00000001035002af Py_Main + 2715 43 Python 0x0000000103449e88 Python + 3720 44 ??? 0x0000000000000002 0x0 + 2 ) terminate called throwing an exceptionAbort trap: 6