change figure size and figure format in matplotlib?

I want to obtain fig1 exactly of 4 by 3 inch sized, and in tiff format correcting the program below: import matplo...

How to recognizing a Maze in an image using Opencv3.3 and Pyhton2.7?

Hey there I am using Opencv3.3 and Pyhton2.7 for recognizing a Maze in an image. I have to find the outermost limit ...

OpenCV 2.4.9 for Python, cannot find chessboard (camera calibration tutorial)?

I am trying to calibrate camera using OpenCV tools according to the following this guide. The problem is that funct...

3D Array in Python with mutliple data types?

I need to create a 3D array in numpy which has multiple data types. arr[int][str][int] I have tried using np.ne...

input() error - NameError: name '…' is not defined?

I am getting an error when I try to run this simple script: input_variable = input ("Enter your name: ") print ("yo...

Symbol not found: __PyCodecInfo_GetIncrementalDecoder?

Since updating from Homebrew Python 2.7.11 (from 2.7.10) I'm suddenly unable to test register my package on PyPi fro...

How to create a 3x3 grid, using opencv2 or PILLOW. similar to TIC-TAC-TOE??

I want to generate a 3x3 grid, in which one of the 9 grids highlighted each time. so that I will get 9 different ima...

ImportError: No module named IPython?

When i try to use from IPython.display import clear_output, display_html, then i show the error: (ImportError: No ...

TypeError: super() takes at least 1 argument (0 given) error is specific to any python version??

I'm getting this error TypeError: super() takes at least 1 argument (0 given) using this code on python2.7.11:...

ImportError: cannot import name NUMPY_MKL?

I am trying to run the following simple code import scipy scipy.test() But I am getting the following error Tra...

ImportError: No module named scipy?

I am using Python 2.7 and trying to get PyBrain to work. But I get this error even though scipy is installed - Tr...

ImportError: No module named scipy?

I am using Python 2.7 and trying to get PyBrain to work. But I get this error even though scipy is installed - Tr...

ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle??

I use pickle to dump a file on python 3, and I use pickle to load the file on python 2, the ValueError appears. So...

ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle??

I use pickle to dump a file on python 3, and I use pickle to load the file on python 2, the ValueError appears. So...