This piece of code:
from matplotlib import pyplot as plt
always worked fine until now. When i run every files with this piece of code, they are runned up to this code line and then the execution is stopped without error signaling. It works as if the file ended on that line. My matplotlib version is 1.2.0, and numpy 1.6.2. How can i solve it? Reinstalling the module?
UPDATE:
from __future__ import division
import os
import glob
import scipy
import numpy as np
import pymorph as pm
#import pylab as plb
#import math
import matplotlib
print("before matplot")
from matplotlib import pyplot as plt
print("after matplot")
import cv2
import mahotas as mh
from skimage import morphology
from math import sqrt
import copy
#... the others code's lines (1700 lines of code) are runned only if
#"from matplotlib import pyplot as plt" is commented
output:
>>> ================================ RESTART ================================
>>>
before matplot
>>> ================================ RESTART ================================
>>>
UPDATE 2:
import matplotlib.pyplot as plt; plt.figure(); plt.show()
from python Shell works and open a grey windows with command bar below
<matplotlib.figure.Figure object at 0x03741B70>