Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/orng/orngPCA.py

    r9676 r11590  
    99from numpy import sqrt, abs, dot, transpose 
    1010from numpy.linalg import eig, inv 
    11  
    12 mathlib_import = True 
    13 try: 
    14     import matplotlib.pyplot as plt 
    15 except: 
    16     import warnings 
    17     warnings.warn("Importing of matplotlib has failed.\nPlotting functions will be unavailable.") 
    18     mathlib_import = False 
    1911 
    2012#color table for biplot 
     
    354346            If None, plot will be shown 
    355347        """ 
    356  
    357         if not mathlib_import: 
    358             raise orange.KernelException, "Matplotlib was not imported!" 
    359  
    360         #plt.clf() -> opens two windows 
     348        import pylab as plt 
    361349        fig = plt.figure() 
    362350        ax = fig.add_subplot(111) 
     
    392380            If None, plot will be shown 
    393381        """ 
    394  
    395         if not mathlib_import: 
    396             raise orange.KernelException, "Matplotlib was not imported!" 
     382        import pylab as plt 
    397383 
    398384        if self._dataMatrix == None: 
Note: See TracChangeset for help on using the changeset viewer.