Changeset 11590:a14e130116b1 in orange


Ignore:
Timestamp:
06/05/13 01:44:46 (11 months ago)
Author:
astaric
Branch:
default
rebase_source:
dc738d3a67aaef421de0521e4d358f8673cc29c8
Message:

Only include PCA in drawing methods.

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.