Changeset 10604:64263715a776 in orange


Ignore:
Timestamp:
03/21/12 17:43:31 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
rebase_source:
11e2e976d66a63bb960544e6c2702ec123c67884
Message:

Improved scree plot for few components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/projection/linear.py

    r10580 r10604  
    15561556 
    15571557        x_axis = range(len(self.eigen_values)) 
    1558 #        x_labels = ["PC%d" % (i + 1, ) for i in x_axis] 
    1559  
    1560 #        ax.set_xticks(x_axis) 
    1561 #        ax.set_xticklabels(x_labels) 
    1562 #        plt.setp(ax.get_xticklabels(), "rotation", 90) 
     1558        if len(x_axis) < 5: 
     1559            ax.set_xticks(x_axis) 
    15631560        plt.grid(True) 
    15641561 
Note: See TracChangeset for help on using the changeset viewer.